.popup.popup--coupon.promo-code-modal {
    --promo-accent: #8b5cf6;
    --promo-accent-strong: #7447eb;
    --promo-surface: #121318;
    --promo-field: #202229;
    --promo-line: rgba(255, 255, 255, 0.09);
    --promo-text: #f7f7fb;
    --promo-muted: #8e929d;
    width: min(485px, calc(100vw - 24px)) !important;
    min-height: 0;
    max-height: calc(100dvh - 24px) !important;
    padding: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    color: var(--promo-text);
    background: var(--promo-surface) !important;
    border: 1px solid var(--promo-line);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(139, 92, 246, 0.04);
}

.promo-code-modal__close.close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #c9cbd2;
    background: transparent !important;
    border: 0;
    border-radius: 12px;
    box-shadow: none !important;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.promo-code-modal__close.close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06) !important;
    transform: rotate(4deg);
}

.promo-code-modal__close svg {
    width: 18px;
    height: 18px;
}

.promo-code-modal__main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 32px 31px;
    text-align: center;
}

.promo-code-modal__visual {
    display: block;
    width: 190px;
    height: auto;
    margin: -4px auto -2px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.94) 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.94) 72%, transparent 100%);
}

.promo-code-modal__title {
    margin: 2px 0 25px;
    color: var(--promo-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.promo-code-modal__form {
    display: grid;
    gap: 24px;
    width: 100%;
}

.promo-code-modal .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.promo-code-modal__input {
    width: 100%;
    height: 49px;
    padding: 0 17px;
    color: var(--promo-text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 49px;
    text-align: left;
    text-transform: uppercase;
    background: var(--promo-field);
    border: 1px solid transparent;
    border-radius: 9px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.promo-code-modal__input::placeholder {
    color: var(--promo-muted);
    text-transform: none;
    opacity: 1;
}

.promo-code-modal__input:hover {
    background: #24262e;
}

.promo-code-modal__input:focus {
    background: #24262e;
    border-color: rgba(139, 92, 246, 0.72);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

.promo-code-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 0 20px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    background: linear-gradient(135deg, var(--promo-accent), var(--promo-accent-strong));
    border: 0;
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(116, 71, 235, 0.24);
    transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.promo-code-modal__submit:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(116, 71, 235, 0.32);
}

.promo-code-modal__submit:active:not(:disabled) {
    transform: translateY(0);
}

.promo-code-modal__submit:focus-visible,
.promo-code-modal__close:focus-visible,
.promo-code-modal__vip-link:focus-visible {
    outline: 2px solid #bca6ff;
    outline-offset: 3px;
}

.promo-code-modal__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 20px 32px;
    border-top: 1px solid var(--promo-line);
    box-sizing: border-box;
}

.promo-code-modal__vip-link {
    color: #f0f0f4;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.48);
    text-underline-offset: 3px;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.promo-code-modal__vip-link:hover {
    color: #cdbfff;
    text-decoration-color: #cdbfff;
}

@media (max-width: 560px) {
    .popup.popup--coupon.promo-code-modal {
        width: calc(100vw - 24px) !important;
        border-radius: 17px;
    }

    .promo-code-modal__main {
        padding: 20px 20px 26px !important;
    }

    .promo-code-modal__visual {
        width: 168px;
        margin-top: -6px;
    }

    .promo-code-modal__title {
        margin-bottom: 22px;
        font-size: 25px;
    }

    .promo-code-modal__form {
        gap: 14px;
    }

    .promo-code-modal__footer {
        min-height: 82px;
        padding: 18px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-code-modal__close,
    .promo-code-modal__input,
    .promo-code-modal__submit,
    .promo-code-modal__vip-link {
        transition: none;
    }
}
