/* Syncrize Premium: the upgrade button and its modal.
   Loaded once from the layout, so any widget can use `.premium-button`
   without re-declaring it. */

.premium-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 20px;
    border: 0;
    border-radius: 0;
    /* Syncrize Sports: premium is the navy control with the acid tag, so it
       reads as the same brand as the header's acid account button. */
    background: #071522;
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: none;
    transition: background 0.18s ease;
}

.premium-button:hover,
.premium-button:focus-visible {
    color: #fff;
    background: #174cff;
}

.premium-button:focus-visible {
    outline: 3px solid #d6ff32;
    outline-offset: 2px;
}

.premium-button.is-large {
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    font-size: 1rem;
}

/* "Premium" pill inside a locked control, so the tier is visible on the
   button itself and not only in the copy around it. */
.premium-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 2px;
    background: #d6ff32;
    color: #071522;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* The shine. Purely decorative, so it is dropped entirely for anyone who has
   asked for less motion rather than merely slowed down. */
.premium-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(214, 255, 50, 0.28), transparent);
    transform: skewX(-18deg);
    animation: premium-shine 3.6s ease-in-out infinite;
}

@keyframes premium-shine {
    0%, 62% { left: -60%; }
    100% { left: 120%; }
}

@media (prefers-reduced-motion: reduce) {
    .premium-button::after { display: none; }
    .premium-button { transition: none; }
}

.premium-modal[hidden] { display: none; }

.premium-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.premium-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 21, 34, 0.62);
    backdrop-filter: blur(2px);
}

.premium-modal-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 34px);
    border-top: 6px solid #d6ff32;
    border-radius: 2px;
    background: #fbf7ee;
    box-shadow: 0 40px 90px rgba(7, 21, 34, 0.35);
}

.premium-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 2px;
    background: rgba(7, 21, 34, 0.06);
    color: #071522;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.premium-modal-close:hover { background: rgba(7, 21, 34, 0.12); }

.premium-modal-kicker {
    display: block;
    margin-bottom: 8px;
    color: #c2410c;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.premium-modal-panel h2 {
    margin: 0 0 8px;
    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #071522;
}

.premium-modal-lede {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: #3b4852;
}

.premium-modal-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.premium-modal-plan {
    padding: 14px 16px;
    border: 1px solid rgba(7, 21, 34, 0.17);
    border-radius: 0;
    background: #fff;
}

.premium-modal-plan.is-best {
    border-color: #071522;
    box-shadow: inset 0 0 0 1px #071522;
}

.premium-modal-plan-name {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c2410c;
}

.premium-modal-price {
    display: block;
    margin-top: 4px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #071522;
    font-family: "Arial Black", Arial, sans-serif;
}

.premium-modal-price span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #56626b;
}

.premium-modal-plan-note {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: #56626b;
}

.premium-modal-list {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.premium-modal-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #3b4852;
}

.premium-modal-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: #c2410c;
}

.premium-modal-fine {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: #56626b;
    text-align: center;
}

body.premium-modal-open { overflow: hidden; }
