/* ElevenLabs.vn promo modal — voiceai.vn */

.elvn-promo[hidden] {
    display: none !important;
}

body.elvn-promo-open {
    overflow: hidden;
}

.elvn-promo {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.elvn-promo__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 12, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.elvn-promo__dialog {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 32px 24px 24px;
    border-radius: 20px;
    background: linear-gradient(165deg, #1a1428 0%, #12101a 45%, #0d0d12 100%);
    border: 1px solid rgba(167, 139, 250, 0.28);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    color: #f4f4f5;
    text-align: center;
    animation: elvn-promo-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    isolation: isolate;
}

@keyframes elvn-promo-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.elvn-promo__glow {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.elvn-promo__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    background: rgba(18, 18, 24, 0.85);
    color: #fafafa;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: background 0.18s, border-color 0.18s, transform 0.18s, color 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.elvn-promo__close svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
    opacity: 0.92;
}

.elvn-promo__close:hover,
.elvn-promo__close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: scale(1.04);
    outline: none;
}

.elvn-promo__badge {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.elvn-promo__title {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    padding: 0 8px;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.elvn-promo__gift {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.elvn-promo__gift-icon {
    font-size: 28px;
    line-height: 1;
}

.elvn-promo__gift-amount {
    display: block;
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    background: linear-gradient(90deg, #e9d5ff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
}

.elvn-promo__gift-sub {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #a1a1aa;
}

.elvn-promo__body {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.65;
    color: #d4d4d8;
}

.elvn-promo__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elvn-promo__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

.elvn-promo__cta:hover,
.elvn-promo__cta:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5);
    outline: 2px solid rgba(167, 139, 250, 0.55);
    outline-offset: 2px;
}

.elvn-promo__later {
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    color: #71717a;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s;
}

.elvn-promo__later:hover {
    color: #a1a1aa;
}

@media (max-width: 480px) {
    .elvn-promo__dialog {
        padding: 24px 18px 20px;
        border-radius: 16px;
    }

    .elvn-promo__gift {
        flex-direction: column;
        gap: 6px;
        padding: 12px;
    }
}
