/* ==========================================================================
   Promo Popup (bónus + código promocional)
   ========================================================================== */

.pp-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 15, 1, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pp-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    animation: pp-pop-in 0.25s ease;
}

@keyframes pp-pop-in {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 28px;
    max-width: none;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pp-close img {
    width: 12px;
    height: 12px;
    filter: invert(1);
}

.pp-header {
    background: var(--wp--preset--color--sunrise-primary-1, #0c350b);
    padding: 22px 24px 18px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.pp-header__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pp-header__logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.pp-header__logo::first-letter {
    color: #ffbb23;
}

.pp-header__gift {
    background: #ffbb23;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c350b;
}

.pp-header__gift svg {
    display: block;
}

.pp-header__message {
    margin: 8px 0 0;
    color: #f5fdf4;
    font-size: 14px;
    font-weight: 600;
}

.pp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.pp-item {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 12px 14px;
}

.pp-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pp-item__badge {
    display: inline-block;
    background: var(--wp--preset--color--sunrise-primary-1, #0c350b);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.pp-item__spins {
    font-size: 12px;
    color: #6b6b6b;
    white-space: nowrap;
}

.pp-item__game {
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a1a;
}

.pp-item__meta {
    margin-top: 2px;
    display: flex;
    gap: 12px;
    font-size: 11.5px;
    color: #8a8a8a;
}

.pp-item__action {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pp-item__code {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px dashed #bdbdbd;
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    color: #1a1a1a;
    filter: blur(4px);
    user-select: none;
    transition: filter 0.2s ease, border-style 0.2s ease, border-color 0.2s ease;
}

.pp-item.pp-item--revealed .pp-item__code {
    filter: none;
    border-style: solid;
    border-color: #349b56;
    user-select: text;
}

.pp-item__btn {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--wp--preset--color--sunrise-primary-1, #0c350b);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.pp-item__btn-icon {
    display: flex;
    flex-shrink: 0;
}

.pp-item__btn-icon svg {
    display: block;
}

.pp-item.pp-item--revealed .pp-item__btn {
    background: linear-gradient(135deg, rgba(252, 185, 0, 1) 0%, rgba(255, 105, 0, 1) 100%);
    color: #1a1a1a;
}

.pp-terms {
    margin: 0;
    padding: 0 18px 18px;
    font-size: 11px;
    line-height: 1.5;
    color: #9c9c9c;
    text-align: center;
}

.pp-terms a {
    color: #9c9c9c;
    text-decoration: underline;
}

@media (max-width: 460px) {
    .pp-item__action {
        flex-direction: column;
        align-items: stretch;
    }
}
