/* ===== Барабан ===== */
.promo-wheel .promo-wheel__stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    padding: 6px;
}

.promo-wheel {
    --promo-sync-duration: .5s;
    --promo-sync-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.promo-wheel .promo-wheel__disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    will-change: transform, filter;
    transition:
        transform 6s cubic-bezier(0.2, 0.75, 0.2, 1),
        filter var(--promo-sync-duration) var(--promo-sync-easing);
    filter: blur(0) drop-shadow(0 15px 35px rgba(0, 0, 0, .25));
}

.promo-wheel .promo-wheel__disc.is-blurred {
    filter: blur(16px) drop-shadow(0 15px 35px rgba(0, 0, 0, .25));
}

.promo-wheel .promo-wheel__svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.promo-wheel .promo-wheel__pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 42px solid #5aa800;
    z-index: 3;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
    border-radius: 4px;
}

.promo-wheel .promo-wheel__hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115px;
    height: 115px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, .25),
        inset 0 0 0 5px #8ed900;
    z-index: 2;
    pointer-events: none;
}

.promo-wheel .promo-wheel__hub img {
    width: 82%;
    height: 82%;
    display: block;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    transform: scale(1.02);
}

/* ===== Оверлей ===== */
.promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity var(--promo-sync-duration) var(--promo-sync-easing),
        visibility 0s var(--promo-sync-duration);
}

.promo-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition:
        opacity var(--promo-sync-duration) var(--promo-sync-easing),
        visibility 0s 0s;
}

.promo-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, .55);
}

/* ===== Форма ===== */
.promo-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    text-align: center;
    transform: translateY(14px) scale(.97);
    transition: transform var(--promo-sync-duration) var(--promo-sync-easing);
}

.promo-overlay.is-open .promo-form {
    transform: translateY(0) scale(1);
}

.promo-form__step[hidden] { display: none; }

.promo-form__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s, color .2s;
}
.promo-form__close:hover { background: #f2f2f2; color: #333; }

.promo-form__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eefbcc;
    color: #4a8500;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.promo-form__title {
    font-size: 22px;
    font-weight: 700;
    color: #1e1e23;
    margin-bottom: 6px;
}

.promo-form__prize {
    color: #4a8500;
    display: inline-block;
    position: relative;
}

.promo-form__prize.is-blurred {
    filter: blur(8px);
    opacity: .8;
    user-select: none;
    pointer-events: none;
    transform-origin: center;
    animation: prizeBlurPulse 1.8s ease-in-out infinite;
}

@keyframes prizeBlurPulse {
    0%   { filter: blur(6px);  opacity: .55; transform: scale(.96); letter-spacing: 0; }
    50%  { filter: blur(13px); opacity: 1;   transform: scale(1.06); letter-spacing: 1px; }
    100% { filter: blur(6px);  opacity: .55; transform: scale(.96); letter-spacing: 0; }
}

.promo-form__subtitle {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

.promo-form__field { margin-bottom: 12px; }

.promo-form__field input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    background: #fafafa;
    outline: none;
    transition: border-color .2s, background .2s;
    font-family: inherit;
}

.promo-form__field input:focus {
    border-color: #8ed900;
    background: #fff;
}

.promo-form__field input.is-error {
    border-color: #e63946;
    background: #fff5f5;
}

.promo-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin: 4px 0 14px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.35;
    user-select: none;
}

.promo-form__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #8ed900;
    cursor: pointer;
}

.promo-form__submit {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: opacity .2s ease, filter .2s ease;
}

.promo-form__submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.35);
}

.promo-form__spinner {
    width: 54px;
    height: 54px;
    margin: 6px auto 16px;
    border-radius: 50%;
    border: 5px solid #eefbcc;
    border-top-color: #8ed900;
    animation: promoSpin .9s linear infinite;
}
@keyframes promoSpin { to { transform: rotate(360deg); } }

.promo-form__done-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eefbcc;
    color: #4a8500;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-form__done-icon.is-warning {
    background: #fff2d6;
    color: #c98c00;
}
.promo-form__done-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.promo-form__done-text {
    margin-top: 8px;
    color: #777;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 991px) {
    .promo-wheel .promo-wheel__stage { max-width: 400px; margin-bottom: 24px; }
}
@media (max-width: 575px) {
    .promo-form { padding: 26px 20px 22px; border-radius: 16px; }
    .promo-form__title { font-size: 19px; }
    .promo-wheel .promo-wheel__hub { width: 96px; height: 96px; }
}

/* ===== Админ-страница ===== */
.promo-wheel-admin .nav-tab-wrapper { margin-bottom: 16px; }
.promo-wheel-admin__body { max-width: 960px; }
.promo-wheel-admin .form-table th { width: 220px; }
.promo-wheel-admin #pw-prizes-table td { vertical-align: middle; }
.promo-wheel-admin #pw-prizes-table input[type="text"] { width: 100%; }
.promo-wheel-admin #pw-prizes-table input[type="number"] { width: 100%; }
