/**
 * je-brand-popup.css — стили exit-intent popup'а с колесом удачи.
 */

.je-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.je-popup[hidden] { display: none; }

.je-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.je-popup__panel {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow: auto;
    padding: 1.5rem 1.5rem 1.2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    box-sizing: border-box;
}

.je-popup__close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
}
.je-popup__close:hover { color: #1f2937; }

.je-popup__title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: #1f2937;
    line-height: 1.2;
}

.je-popup__subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 0 1.2rem;
}

.je-popup__wheel-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 1rem;
}

.je-popup__wheel-arrow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #ef4444;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.je-popup__wheel {
    width: 100%;
    height: 100%;
}

.je-popup__wheel-svg {
    width: 100%;
    height: 100%;
}

.je-popup__wheel-rotor {
    transform-origin: 150px 150px;
}

.je-popup__spin {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: 0;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
    transition: transform 0.15s, filter 0.15s;
}
.je-popup__spin:hover { transform: translateY(-2px); filter: brightness(1.07); }
.je-popup__spin:disabled,
.je-popup__spin[disabled] {
    background: linear-gradient(135deg, #fb923c, #f97316) !important;
    color: #fff !important;
    opacity: 0.85;
    cursor: wait;
    filter: none;
    transform: none;
}

.je-popup__stage[hidden] { display: none; }

.je-popup__win-emoji { font-size: 3.4rem; margin-bottom: 0.3rem; line-height: 1; }

.je-popup__win-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0.2rem 0 0.9rem;
}

.je-popup__win-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 0 0 0.8rem;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.25);
}
.je-popup__win-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    margin: 0;
    display: block;
}
.je-popup__win-card-body { flex: 1; min-width: 0; }
.je-popup__win-brand-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}
.je-popup__win-prize {
    font-size: 1.15rem;
    font-weight: 800;
    color: #7c2d12;
    line-height: 1.25;
    margin: 0;
    word-break: break-word;
}

.je-popup__win-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    text-align: left;
    display: grid;
    gap: 0.4rem;
}
.je-popup__win-bullets li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: #1f2937;
    line-height: 1.35;
}
.je-popup__win-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 900;
    font-size: 1rem;
}

.je-popup__cta {
    display: block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    text-decoration: none;
    padding: 1.1rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    margin-bottom: 0.6rem;
    transition: transform 0.15s, filter 0.15s;
}
.je-popup__cta:hover { transform: translateY(-2px); filter: brightness(1.07); }

.je-popup__skip {
    background: transparent;
    border: 0;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem;
    text-decoration: underline;
}

.je-popup__disclaimer {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

@media (max-width: 480px) {
    .je-popup__panel { padding: 1.2rem; }
    .je-popup__title { font-size: 1.3rem; }
    .je-popup__wheel-wrap { width: 240px; height: 240px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .je-popup__wheel-rotor { transition: none !important; }
}

/* === Popup CTA contrast fix 2026-05-23 === */
.je-popup__cta,
.je-popup__cta:hover,
.je-popup__cta:focus,
.je-popup__cta:visited { color: #ffffff !important; }
