/* =========================================================
   PROMO
   ========================================================= */
.profile-v2-promo {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;

    padding: 18px 20px;
    margin-bottom: 18px;

    color: #fff;

    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .16), transparent 35%),
        linear-gradient(120deg, #29244f 0%, #5144b7 50%, #725be0 100%);

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;

    box-shadow: 0 12px 34px rgba(61, 49, 143, .20);
}

/* visual */

.profile-v2-promo__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-v2-promo__visual-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: #5144b7;
    background: #fff;

    font-size: 21px;

    box-shadow: 0 8px 22px rgba(18, 12, 55, .20);
}

.profile-v2-promo__visual-caption {
    display: none;
}

/* content */

.profile-v2-promo__content {
    min-width: 0;
}

.profile-v2-promo__badge {
    display: inline-flex;

    margin-bottom: 6px;
    padding: 4px 8px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .90);

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-v2-promo__title {
    display: block;

    margin-bottom: 4px;

    font-size: 16px;
    line-height: 1.3;
}

.profile-v2-promo__text {
    display: block;

    max-width: 520px;

    color: rgba(255, 255, 255, .72);

    font-size: 12px;
    line-height: 1.45;
}

.profile-v2-promo__progress {
    overflow: hidden;

    max-width: 420px;
    height: 4px;

    margin-top: 11px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .13);
}

.profile-v2-promo__progress-bar {
    width: 100%;
    height: 100%;

    background: #fff;

    border-radius: inherit;

    transition: width .7s linear;
}

/* timer */

.profile-v2-promo__time-label {
    display: block;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, .55);

    font-size: 9px;
    font-weight: 700;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.profile-v2-promo__timer {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.profile-v2-promo__timer-item {
    width: 46px;

    text-align: center;
}

.profile-v2-promo__timer-item strong {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 36px;

    border-radius: 8px;

    background: rgba(16, 13, 47, .28);
    border: 1px solid rgba(255, 255, 255, .10);

    font-size: 18px;
    font-weight: 700;
}

.profile-v2-promo__timer-item span {
    display: block;

    margin-top: 4px;

    color: rgba(255, 255, 255, .48);

    font-size: 9px;
}

.profile-v2-promo__separator {
    padding-top: 5px;

    color: rgba(255, 255, 255, .50);

    font-size: 18px;
}

/* action */

.profile-v2-promo__action {
    min-width: 180px;
}

.profile-v2-promo__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 15px;

    border-radius: 9px;

    background: #fff;
    color: #5144b7 !important;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none !important;

    box-shadow: 0 8px 20px rgba(17, 13, 50, .18);
}

.profile-v2-promo__hint {
    display: block;

    margin-top: 5px;

    color: rgba(255, 255, 255, .42);

    font-size: 9px;
    text-align: center;
}

/* ===== Promo states ===== */

.profile-v2-promo__button {
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.profile-v2-promo__button:hover,
.profile-v2-promo__button:focus-visible {
    color: #4539a3 !important;
    background: #f8f6ff;
    transform: translateY(-2px);
    box-shadow: 0 11px 26px rgba(17, 13, 50, .24);
}

.profile-v2-promo__button:active {
    transform: translateY(0);
}

.profile-v2-promo__button i {
    transition: transform .18s ease;
}

.profile-v2-promo__button:hover i {
    transform: translateX(3px);
}

.profile-v2-promo.is-urgent {
    box-shadow:
        0 12px 38px rgba(108, 69, 213, .30),
        inset 0 1px 0 rgba(255, 255, 255, .10);
}

.profile-v2-promo.is-urgent .profile-v2-promo__timer-item strong {
    animation: promoTimerPulse 1.7s ease-in-out infinite;
}

@keyframes promoTimerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
    }
}

.profile-v2-promo.is-expired {
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity .35s ease,
        transform .35s ease;
}

.profile-v2-alert--info {
    border-color: #ded9fa;
    border-left-color: #6756c8;
}

.profile-v2-alert--info .profile-v2-alert__summary {
    background: #faf9ff;
}

.profile-v2-alert--info .profile-v2-alert__icon {
    color: #6756c8;
    background: #ebe7ff;
}

.profile-v2-alert--info .profile-v2-alert__badge {
    color: #5949b8;
    background: #ebe7ff;
}

.profile-v2-alert--info .profile-v2-alert__chevron {
    color: #6756c8;
}

