.rtp-paywall-modal {
    position: fixed;
    inset: 0;
    z-index: 20050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.rtp-paywall-modal.hidden {
    display: none;
}

.rtp-paywall-modal__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--rtp-bg-app) 55%, #000 45%);
}

.rtp-paywall-modal__panel {
    position: relative;
    width: min(100%, 26rem);
    padding: 1.5rem 1.35rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--rtp-border);
    background: var(--rtp-bg-panel);
    box-shadow: var(--rtp-shadow-soft);
    color: var(--rtp-brand-text);
    font-family: var(--rtp-font-ui);
}

.rtp-paywall-modal__title {
    margin: 0 0 0.65rem;
    font-family: var(--rtp-font-brand);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rtp-paywall-modal__message {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--rtp-brand-muted);
}

.rtp-paywall-modal__cta {
    display: block;
    width: 100%;
    margin-bottom: 0.65rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--rtp-brand-primary);
    color: var(--rtp-on-primary);
    font-family: var(--rtp-font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rtp-transition-ui);
}

.rtp-paywall-modal__cta:hover {
    filter: brightness(1.08);
    box-shadow: var(--rtp-hover-glow);
}

.rtp-paywall-modal__dismiss {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--rtp-brand-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.rtp-paywall-modal__dismiss:hover {
    color: var(--rtp-brand-text);
}

.rtp-paywall-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 20100;
    max-width: min(92vw, 22rem);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--rtp-border);
    background: var(--rtp-bg-panel);
    box-shadow: var(--rtp-shadow-soft);
    color: var(--rtp-brand-text);
    font-family: var(--rtp-font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 0.75rem);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.rtp-paywall-toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.rtp-feature-locked {
    position: relative;
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: auto;
}

/* Chips / fichas: candado en esquina (no tapa el dorsal). */
.topbar-player-chip.rtp-feature-locked,
.topbar-rival-chip.rtp-feature-locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-player-chip.rtp-feature-locked::after,
.topbar-rival-chip.rtp-feature-locked::after {
    content: "🔒";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    line-height: 1;
    pointer-events: none;
}

/* Botones con texto o icono: candado en línea (flex + gap). */
.topbar-defense-btn.rtp-feature-locked,
.creation-defense-auto-btn.rtp-feature-locked,
.creation-new-play-btn.rtp-feature-locked,
.creation-library-share-open.rtp-feature-locked,
.workshop-share-modal__copy-btn.rtp-feature-locked,
.workshop-share-modal__master-copy.rtp-feature-locked,
.workshop-share-modal__master-regen.rtp-feature-locked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.topbar-defense-btn.rtp-feature-locked {
    padding-inline: 10px 8px;
}

.creation-defense-auto-btn.rtp-feature-locked {
    gap: 10px;
}

#creation-new-play-btn.creation-new-play-btn.rtp-feature-locked:hover,
button.creation-btn.creation-new-play-btn.rtp-feature-locked:hover {
    filter: none;
    transform: none;
}

.creation-library-share-open.rtp-feature-locked {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    min-width: 36px;
    padding: 0 10px;
    gap: 6px;
}

.topbar-defense-btn.rtp-feature-locked::after,
.creation-defense-auto-btn.rtp-feature-locked::after,
.creation-new-play-btn.rtp-feature-locked::after,
.creation-library-share-open.rtp-feature-locked::after,
.workshop-share-modal__copy-btn.rtp-feature-locked::after,
.workshop-share-modal__master-copy.rtp-feature-locked::after,
.workshop-share-modal__master-regen.rtp-feature-locked::after {
    content: "🔒";
    position: static;
    top: auto;
    right: auto;
    flex-shrink: 0;
    font-size: 0.8rem;
    line-height: 1;
    pointer-events: none;
}

.creation-library-share-open.rtp-feature-locked svg {
    flex-shrink: 0;
}
