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

.phuture-app-promo {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 2147483000;
}

.phuture-app-promo__backdrop {
    background: rgba(25, 14, 35, 0.68);
    inset: 0;
    position: absolute;
}

.phuture-app-promo__dialog {
    background: #fffffa;
    border: 1px solid rgba(79, 43, 97, 0.2);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(22, 12, 30, 0.32);
    box-sizing: border-box;
    color: #24172b;
    max-height: calc(100vh - 40px);
    max-width: 460px;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    text-align: center;
    width: 100%;
}

.phuture-app-promo__dialog:focus {
    outline: 3px solid #7b3f8f;
    outline-offset: 3px;
}

.phuture-app-promo .phuture-app-promo__close {
    all: unset;
    align-items: center;
    background: transparent;
    border: 0 !important;
    border-radius: 50%;
    box-shadow: none !important;
    box-sizing: border-box;
    color: #38233f;
    cursor: pointer;
    display: flex !important;
    float: none !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    height: 48px !important;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    max-width: 48px !important;
    min-height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    position: absolute !important;
    right: 10px !important;
    text-align: center;
    text-shadow: none !important;
    top: 10px !important;
    width: 48px !important;
    z-index: 2;
}

.phuture-app-promo .phuture-app-promo__close:hover,
.phuture-app-promo .phuture-app-promo__close:focus {
    background: #f1e7f3;
    outline: 3px solid #7b3f8f;
    outline-offset: 1px;
}

.phuture-app-promo__identity {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    gap: 10px;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.phuture-app-promo__icon {
    border-radius: 20px;
    box-shadow: 0 5px 18px rgba(44, 24, 53, 0.18);
    height: 88px;
    object-fit: cover;
    width: 88px;
}

.phuture-app-promo h2 {
    color: #24172b;
    font-family: inherit;
    font-size: clamp(24px, 6.2vw, 32px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
}

.phuture-app-promo p {
    color: #493b50;
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 24px;
}

.phuture-app-promo .phuture-app-promo__platform-note {
    background: #eaf7fd;
    border: 1px solid #b9dfef;
    border-radius: 999px;
    color: #086ba1;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin: -8px 0 20px;
    padding: 8px 14px;
}

.phuture-app-promo .phuture-app-promo__platform-note[hidden] {
    display: none !important;
}

.phuture-app-promo__store,
.phuture-app-promo__continue {
    align-items: center;
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.25;
    min-height: 52px;
    padding: 13px 18px;
    text-decoration: none;
    width: 100%;
}

.phuture-app-promo__store {
    background: linear-gradient(135deg, #0a3564, #0879bc);
    border: 2px solid #64c7f4;
    box-shadow: 0 12px 28px rgba(0, 44, 82, 0.24);
    color: #ffffff;
    margin-bottom: 10px;
}

.phuture-app-promo__store:hover,
.phuture-app-promo__store:focus {
    background: linear-gradient(135deg, #082f58, #0a568d);
    border-color: #72c8ff;
    color: #ffffff;
    outline: 3px solid #72c8ff;
    outline-offset: 2px;
    text-decoration: none;
}

.phuture-app-promo__continue {
    appearance: none;
    background: transparent;
    border: 2px solid #653477;
    color: #512860;
}

.phuture-app-promo__continue:hover,
.phuture-app-promo__continue:focus {
    background: #f1e7f3;
    color: #3f1f4b;
    outline: 3px solid #d6aedf;
    outline-offset: 2px;
}

body.phuture-app-promo-open {
    overscroll-behavior: contain;
}

@media (max-width: 520px) {
    .phuture-app-promo {
        padding: 14px;
    }

    .phuture-app-promo__dialog {
        border-radius: 18px;
        max-height: calc(100vh - 28px);
        padding: 26px 20px 22px;
    }

    .phuture-app-promo__identity {
        margin-bottom: 14px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .phuture-app-promo__backdrop {
        animation: phuture-app-promo-fade 180ms ease-out;
    }

    .phuture-app-promo__dialog {
        animation: phuture-app-promo-enter 220ms ease-out;
    }
}

@keyframes phuture-app-promo-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes phuture-app-promo-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
