.helpfisio-anniversary {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    font-family: inherit;
}

.helpfisio-anniversary[hidden] {
    display: none;
}

.helpfisio-anniversary__sky,
.helpfisio-anniversary__confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.helpfisio-anniversary__balloon {
    position: absolute;
    bottom: -120px;
    width: 54px;
    height: 68px;
    border-radius: 50% 50% 46% 46%;
    background: var(--balloon-color, #2fb7b5);
    box-shadow: inset -10px -14px 0 rgba(0, 0, 0, 0.12);
    animation: helpfisio-balloon-rise var(--rise-duration, 8s) ease-in forwards;
}

.helpfisio-anniversary__balloon::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 11px solid var(--balloon-color, #2fb7b5);
    transform: translateX(-50%);
}

.helpfisio-anniversary__balloon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -62px;
    width: 1px;
    height: 58px;
    background: rgba(40, 48, 61, 0.36);
    transform: translateX(-50%);
}

.helpfisio-anniversary__confetti-piece {
    position: absolute;
    top: -18px;
    width: 9px;
    height: 15px;
    border-radius: 2px;
    background: var(--confetti-color, #f4c542);
    animation: helpfisio-confetti-fall var(--fall-duration, 4.6s) linear forwards;
}

.helpfisio-anniversary__modal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 430px);
    padding: 34px 30px 30px;
    border: 1px solid rgba(13, 148, 136, 0.16);
    border-radius: 14px;
    background:
        radial-gradient(circle at 88% 16%, rgba(244, 197, 66, 0.22), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #fbfefe 100%);
    box-shadow:
        0 34px 90px rgba(15, 23, 42, 0.28),
        0 14px 34px rgba(13, 148, 136, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #172033;
    opacity: 0;
    pointer-events: auto;
    transform: translate(-50%, -44%) scale(0.96);
    transition: opacity 220ms ease, transform 220ms ease;
}

.helpfisio-anniversary__top-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, #0d9488 0%, #2fb7b5 46%, #ef476f 46%, #f4c542 100%);
}

.helpfisio-anniversary__spark {
    position: absolute;
    top: 24px;
    right: 66px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent 46%, rgba(239, 71, 111, 0.24) 46%, rgba(239, 71, 111, 0.24) 54%, transparent 54%),
        linear-gradient(0deg, transparent 46%, rgba(244, 197, 66, 0.34) 46%, rgba(244, 197, 66, 0.34) 54%, transparent 54%);
    opacity: 0.95;
    pointer-events: none;
    transform: rotate(18deg);
}

.helpfisio-anniversary__modal.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.helpfisio-anniversary__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(239, 71, 111, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: #c9184a;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.helpfisio-anniversary__close:hover,
.helpfisio-anniversary__close:focus {
    background: #fff1f4;
    outline: 2px solid #fecdd3;
    outline-offset: 2px;
}

.helpfisio-anniversary__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.09);
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.helpfisio-anniversary__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef476f;
    box-shadow: 12px 0 0 #f4c542;
}

.helpfisio-anniversary__title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 750;
    line-height: 1.08;
    max-width: 10.5em;
}

.helpfisio-anniversary__message {
    margin: 16px 0 22px;
    color: #475467;
    font-size: 16px;
    line-height: 1.6;
    max-width: 32ch;
}

.helpfisio-anniversary__coupon {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(13, 148, 136, 0.14);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.86), rgba(255, 247, 237, 0.76));
}

.helpfisio-anniversary__code {
    flex: 1;
    min-width: 0;
    padding: 15px 16px;
    border: 1px dashed rgba(13, 148, 136, 0.7);
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
        repeating-linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0 8px, transparent 8px 16px);
    color: #0f766e;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.helpfisio-anniversary__copy {
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f766e, #0d9488) !important;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    padding: 0 18px;
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.28);
    text-decoration: none !important;
}

.helpfisio-anniversary__copy:hover,
.helpfisio-anniversary__copy:focus {
    background: linear-gradient(135deg, #115e59, #0f766e) !important;
    color: #ffffff !important;
    outline: 2px solid #99f6e4;
    outline-offset: 2px;
    transform: translateY(-1px);
}

.helpfisio-anniversary__feedback {
    min-height: 20px;
    margin: 12px 0 0;
    color: #0f766e;
    font-size: 14px;
}

@keyframes helpfisio-balloon-rise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(-4deg);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 20px), -115vh, 0) rotate(8deg);
    }
}

@keyframes helpfisio-confetti-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -20px, 0) rotate(0deg);
    }
    8% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--sway, 30px), 110vh, 0) rotate(540deg);
    }
}

@media (max-width: 480px) {
    .helpfisio-anniversary__modal {
        padding: 24px 18px;
    }

    .helpfisio-anniversary__coupon {
        flex-direction: column;
    }

    .helpfisio-anniversary__copy {
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .helpfisio-anniversary__balloon,
    .helpfisio-anniversary__confetti-piece {
        display: none;
    }

    .helpfisio-anniversary__modal {
        transition: none;
    }
}
