/* BullTV palette, taken from the logo: bull red, flame orange, chrome silver on near-black.
   Loaded last so it wins over legacy theme rules. */
:root {
    /* Surfaces: warm near-black, so the red reads hot rather than muddy */
    --bg-primary: #070606;
    --bg-secondary: #0E0B0B;
    --bg-tertiary: #181010;
    --surface: #121010;
    --surface-hover: #1F1513;
    --surface-active: #2B1A17;

    /* Brand */
    --primary: #E3201B;          /* logo red */
    --primary-hover: #FF3B2F;
    --card-hover: #C81A15;
    --primary-dark: #8E120E;
    --accent: #FF8A1F;           /* horn/flame highlight */
    --accent-gold: #FFB531;
    --silver: #D9DCE1;           /* "ULL" chrome */
    --link: #FF6B4A;             /* red text on dark: lighter tint keeps contrast */

    /* Text */
    --text-primary: #F3F3F4;
    --text-secondary: #B9BBC1;
    --text-muted: #7A7C83;
    --text-disabled: #4E5057;
    --text-on-primary: #FFFFFF;

    /* Lines */
    --border-color: #2C201F;
    --border-hover: #6B2A22;

    /* Content tags and status */
    --content-red: #EF3340;
    --content-purple: #C026D3;
    --content-orange: #F59E0B;
    --content-pink: #EC4899;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #F87171;

    --glow-subtle: 0 0 12px rgba(227, 32, 27, .18);
    --glow-medium: 0 0 20px rgba(227, 32, 27, .30);
    --glow-strong: 0 0 15px rgba(227, 32, 27, .50), 0 0 40px rgba(255, 138, 31, .20);
    --brand-gradient: linear-gradient(135deg, #B3120E 0%, #E3201B 55%, #FF6A1F 100%);
}

html body.reference-theme {
    color: var(--text-primary) !important;
    background: var(--bg-primary) !important;
}

html body.reference-theme.auth-only,
html body.reference-theme.auth-only .auth-screen {
    color: var(--text-primary) !important;
    background:
        radial-gradient(circle at 50% -18%, rgba(227, 32, 27, .12), transparent 38rem),
        linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 48%, var(--bg-primary) 100%) !important;
}

html body.reference-theme:not(.auth-only):not(.checkout-only) main {
    background: var(--bg-primary) !important;
}

html body.reference-theme:not(.auth-only):not(.checkout-only),
html body.reference-theme.home-page,
html body.reference-theme.home-page main {
    background: transparent !important;
}

html body.reference-theme .nf-header,
html body.reference-theme .topbar {
    border-bottom: 1px solid rgba(44, 32, 31, .55) !important;
    background: rgba(7, 6, 6, .86) !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .42) !important;
}

html body.reference-theme .nf-nav-link,
html body.reference-theme .nf-icon-link,
html body.reference-theme .nf-login,
html body.reference-theme .nf-profile-menu a,
html body.reference-theme .nf-profile-menu button,
html body.reference-theme .topbar .main-nav a {
    color: var(--text-secondary) !important;
}

html body.reference-theme .nf-nav-link:hover,
html body.reference-theme .nf-nav-link.is-active,
html body.reference-theme .nf-icon-link:hover,
html body.reference-theme .topbar .main-nav a:hover,
html body.reference-theme .topbar .main-nav a.active {
    color: var(--link) !important;
    background: var(--surface-hover) !important;
}

html body.reference-theme .nf-login,
html body.reference-theme .nf-logout-btn,
html body.reference-theme .normal-hero-cta,
html body.reference-theme .watch-btn,
html body.reference-theme .card-watch-btn,
html body.reference-theme .wide-btn,
html body.reference-theme .pagination-link.active,
html body.reference-theme .topbar .circle-btn,
html body.reference-theme .topbar .plan-btn,
html body.reference-theme .topbar .login-btn {
    color: #FFFFFF !important;
    background: var(--brand-gradient) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(227, 32, 27, .45), 0 0 35px rgba(227, 32, 27, .20) !important;
}

html body.reference-theme .nf-login:hover,
html body.reference-theme .nf-logout-btn:hover,
html body.reference-theme .normal-hero-cta:hover,
html body.reference-theme .watch-btn:hover,
html body.reference-theme .card-watch-btn:hover,
html body.reference-theme .wide-btn:hover,
html body.reference-theme .topbar .login-btn:hover,
html body.reference-theme .topbar .circle-btn:hover {
    background: var(--primary-hover) !important;
}

html body.reference-theme .nf-search,
html body.reference-theme .nf-search.is-open,
html body.reference-theme .nf-profile-menu,
html body.reference-theme .poster-card,
html body.reference-theme .plan-card,
html body.reference-theme .content-detail-card {
    background: var(--surface) !important;
    border: 1px solid var(--border-color) !important;
    border-color: var(--border-color) !important;
}

html body.reference-theme .poster-card:hover,
html body.reference-theme .plan-card:hover,
html body.reference-theme .plan-card:focus-within,
html body.reference-theme .plan-card.popular {
    background: var(--surface-hover) !important;
    border: 1px solid var(--border-hover) !important;
    border-color: var(--border-hover) !important;
}

html body.reference-theme .plan-card.popular {
    border-color: var(--border-hover) !important;
    box-shadow: var(--glow-medium) !important;
}

html body.reference-theme .nf-search input,
html body.reference-theme .poster-card-title,
html body.reference-theme .section-head h2,
html body.reference-theme .hero-copy h1 {
    color: var(--text-primary) !important;
}

html body.reference-theme .section-head a,
html body.reference-theme .view-all,
html body.reference-theme .poster-card-title:hover,
html body.reference-theme .price,
html body.reference-theme .plans-eyebrow {
    color: var(--link) !important;
}

html body.reference-theme .site-footer {
    background: var(--bg-secondary) !important;
    border-top-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

html body.reference-theme .progress-track { background: #2E2626 !important; }
html body.reference-theme .progress-fill { background: linear-gradient(90deg, #E3201B, #FF8A1F) !important; }

/* Detail page and card surfaces */
html body.reference-theme .content-detail-card {
    background: var(--surface) !important;
    border-color: var(--border-color) !important;
}

html body.reference-theme .content-detail-info {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 58%, var(--bg-primary) 100%) !important;
    border-top-color: var(--border-color) !important;
}

html body.reference-theme .poster-card-info,
html body.reference-theme .poster-card-title {
    background: var(--surface) !important;
}

html body.reference-theme .poster-card:hover .poster-card-info,
html body.reference-theme .poster-card:hover .poster-card-title {
    background: var(--surface-hover) !important;
}

html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card-title,
html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .poster-card-title:hover {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    background: transparent !important;
}

html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover .poster-card-title {
    background: transparent !important;
}

html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover .poster-card-info,
html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card:hover .poster-card-title,
html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card .poster-card-title:hover {
    color: var(--text-on-primary) !important;
    background: var(--card-hover) !important;
}

/* Play buttons use the BullTV red-to-flame glow. */
html body.reference-theme .content-detail-play,
html body.reference-theme .large-play-btn {
    color: var(--text-on-primary) !important;
    background: var(--brand-gradient) !important;
    box-shadow: var(--glow-strong) !important;
}

html body.reference-theme .content-detail-play::before,
html body.reference-theme .content-detail-play::after,
html body.reference-theme .large-play-btn::before,
html body.reference-theme .large-play-btn::after {
    border-color: rgba(255, 138, 31, .72) !important;
    box-shadow: 0 0 18px rgba(227, 32, 27, .35) !important;
}

html body.reference-theme .detail-watchlist-btn {
    background: var(--primary) !important;
}

html body.reference-theme .detail-watchlist-btn.active,
html body.reference-theme .detail-share-btn,
html body.reference-theme .detail-share-btn.is-copied {
    background: var(--primary-dark) !important;
}

html body.reference-theme .content-detail-description,
html body.reference-theme .content-detail-extra {
    color: var(--text-secondary) !important;
}

.actual-price { display: none; }

/* Keep the page section/card shell transparent; inner content surfaces define their own backgrounds. */
html body.reference-theme:not(.auth-only):not(.checkout-only) .row-section,
html body.reference-theme:not(.auth-only):not(.checkout-only) .poster-card,
html body.reference-theme:not(.auth-only):not(.checkout-only) .plan-card,
html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-card {
    background: transparent !important;
}


/* Login card: subtitle, full-width phone field, gold-to-red CONTINUE button stacked below. */
html body.reference-theme.auth-only .auth-card {
    width: min(460px, 100%) !important;
    padding: 36px 32px 32px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 22px !important;
    background: linear-gradient(160deg, var(--surface), var(--bg-tertiary)) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5) !important;
}

html body.reference-theme.auth-only .auth-card h1 { margin-bottom: 8px !important; font-size: 30px !important; }
html body.reference-theme.auth-only .auth-card .underline { width: 64px !important; height: 4px !important; margin-bottom: 22px !important; background: var(--primary) !important; }
html body.reference-theme.auth-only .auth-subtitle { margin: 0 0 22px; color: var(--text-secondary); font-size: 17px; }

html body.reference-theme.auth-only .auth-form input {
    min-height: 56px !important;
    padding: 0 18px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    background: var(--bg-primary) !important;
    font-size: 17px !important;
}

html body.reference-theme.auth-only .auth-form input:focus { border-color: var(--primary) !important; }

html body.reference-theme.auth-only .otp-input-action.is-stacked { display: grid; gap: 16px; }
html body.reference-theme.auth-only .auth-form .otp-input-action.is-stacked input { padding-right: 18px !important; }

html body.reference-theme.auth-only .auth-form button,
html body.reference-theme.auth-only .auth-form .otp-input-action.is-stacked button {
    position: static !important;
    width: 100% !important;
    min-height: 56px !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #FFFFFF !important;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent) 45%, var(--primary)) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

/* "Edit number" is a quiet text link under the Resend OTP button, not a full-width action button. */
html body.reference-theme.auth-only .auth-form button.edit-number-link {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 2px auto 0 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    color: var(--primary) !important;
    background: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html body.reference-theme.auth-only .auth-form button.edit-number-link:hover,
html body.reference-theme.auth-only .auth-form button.edit-number-link:focus-visible {
    color: var(--accent-gold) !important;
    background: none !important;
}

/* Profile menu: User ID and plan expiry. */
html body.reference-theme .nf-profile-menu .nf-user-id { color: var(--text-secondary) !important; font-size: 13px !important; }
html body.reference-theme .nf-plan-status { display: grid; gap: 2px; padding: 10px 0; border-block: 1px solid var(--border-color); }
html body.reference-theme .nf-plan-status small { color: var(--text-muted); font-size: 12px; }
html body.reference-theme .nf-plan-status b { color: var(--accent-gold); font-size: 16px; font-variant-numeric: tabular-nums; }

/* Detail page: plain views line, labelled Watchlist (brand red) and Share (dark surface) buttons. */
html body.reference-theme .content-detail-views {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8) !important;
}

html body.reference-theme .content-detail-views svg { width: 17px !important; height: 17px !important; }

html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions { gap: 12px !important; }

html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn,
html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3) !important;
}

html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn { background: var(--brand-gradient) !important; box-shadow: var(--glow-subtle) !important; }
html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn.active { background: var(--primary-dark) !important; }
html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn,
html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn.is-copied { background: var(--surface-hover) !important; box-shadow: inset 0 0 0 1px var(--border-hover) !important; }

html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn:hover,
html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn:hover { filter: brightness(1.1) !important; }

html body.reference-theme .content-detail-actions .detail-action-icon { width: 16px !important; height: 16px !important; stroke-width: 3 !important; }
html body.reference-theme .content-detail-actions .detail-share-icon { stroke-width: 2.4 !important; }

@media (max-width: 580px) {
    html body.reference-theme .content-detail-views { font-size: 12px !important; }
    html body.reference-theme .content-detail-views svg { width: 15px !important; height: 15px !important; }
    html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions { gap: 8px !important; }

    html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-watchlist-btn,
    html body.reference-theme:not(.auth-only):not(.checkout-only) .content-detail-actions .detail-share-btn {
        height: 32px !important;
        min-height: 32px !important;
        gap: 6px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    html body.reference-theme .content-detail-actions .detail-action-icon { width: 14px !important; height: 14px !important; }
}

/* Nav: red search circle, gold packages square, solid red LOGIN with icon. */
html body.reference-theme .nf-header-actions { gap: 10px !important; }

html body.reference-theme .nf-search:not(.is-open) { border: 0 !important; background: transparent !important; }
html body.reference-theme .nf-search.is-open { border-radius: 999px !important; }

html body.reference-theme .nf-search button,
html body.reference-theme .nf-auth-profile {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    color: #FFFFFF !important;
    background: var(--primary) !important;
}

html body.reference-theme .nf-header-actions > a.nf-icon-link {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    background: var(--accent-gold) !important;
}

html body.reference-theme .nf-search button:hover,
html body.reference-theme .nf-auth-profile:hover { background: var(--primary-hover) !important; }
html body.reference-theme .nf-header-actions > a.nf-icon-link:hover { background: #FFC75A !important; }

html body.reference-theme .nf-search button svg,
html body.reference-theme .nf-icon-link svg,
html body.reference-theme .nf-icon-link svg path,
html body.reference-theme .nf-login svg { stroke: #FFFFFF !important; }
html body.reference-theme .nf-search button svg { fill: none !important; }

html body.reference-theme .nf-login {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 16px !important;
    border-radius: 8px !important;
    background: var(--primary) !important;
    box-shadow: none !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

html body.reference-theme .nf-login:hover { background: var(--primary-hover) !important; }
html body.reference-theme .nf-login svg { width: 20px; height: 20px; stroke-width: 1.8; flex: none; }

@media (max-width: 760px) {
    html body.reference-theme .nf-header-actions { gap: 6px !important; }

    html body.reference-theme .nf-search button,
    html body.reference-theme .nf-auth-profile,
    html body.reference-theme .nf-header-actions > a.nf-icon-link,
    html body.reference-theme .nf-header-actions .nf-search:not(.is-open) {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    html body.reference-theme .nf-header-actions .nf-login { padding: 7px 11px !important; font-size: 13px !important; }
    html body.reference-theme .nf-login svg { width: 17px; height: 17px; }
}

/* Packages crown is a filled icon, not an outline. */
html body.reference-theme .nf-icon-link svg.nf-crown-icon,
html body.reference-theme .nf-icon-link svg.nf-crown-icon path { fill: #FFFFFF !important; stroke: none !important; }
html body.reference-theme .nf-icon-link svg.nf-crown-icon { width: 22px !important; height: 22px !important; }

/* Legacy ".detail-watchlist-btn span { font-size: 29px }" in ott.css must not hit the label. */
html body.reference-theme .content-detail-actions .detail-action-label { font-size: inherit !important; line-height: 1 !important; }

/* ===== Plans page: selectable cards + one Pay & Watch bar ===== */
html body.reference-theme .plans-page .plans-heading { width: min(100%, 1080px); }

.pp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    width: min(100%, 1080px);
    margin: 34px auto 0;
}

.pp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 210px;
    padding: 24px 22px 22px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: linear-gradient(160deg, var(--surface), var(--bg-tertiary));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pp-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }

.pp-card:has(.pp-radio:checked) {
    border-color: var(--primary);
    background: linear-gradient(160deg, #2A1311, var(--bg-tertiary));
    box-shadow: var(--glow-strong);
}

.pp-card:has(.pp-radio:focus-visible) { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

.pp-radio { position: absolute; opacity: 0; pointer-events: none; }

.pp-tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    color: #FFFFFF;
    background: var(--brand-gradient);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-name { color: var(--text-primary); font-size: 20px; font-weight: 800; text-transform: uppercase; }

.pp-check {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    border: 3px solid #4A4D55;
    border-radius: 50%;
    transition: border-color .2s ease, background .2s ease;
}

.pp-card:has(.pp-radio:checked) .pp-check { border-color: var(--primary); background: var(--primary); }

.pp-card:has(.pp-radio:checked) .pp-check::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 8px;
    width: 6px;
    height: 11px;
    border: solid #FFFFFF;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.pp-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 4px; }
.pp-price { color: var(--link); font-size: 34px; font-weight: 900; line-height: 1; }
.pp-old { color: var(--text-muted); font-size: 15px; }
.pp-off { padding: 2px 8px; border-radius: 6px; color: #1A0E00; background: var(--accent-gold); font-size: 11px; font-weight: 800; }
.pp-duration { color: var(--text-secondary); font-size: 14px; }

.pp-features { display: grid; gap: 6px; margin-top: 6px; color: var(--text-secondary); font-size: 13px; }
.pp-features span::before { content: "\2713"; margin-right: 8px; color: var(--success); font-weight: 800; }

.pp-status { margin-top: 4px; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.pp-status.is-active { color: #86EFAC; background: rgba(34, 197, 94, .12); }
.pp-status.is-expiring { color: var(--accent-gold); background: rgba(255, 181, 49, .12); }
.pp-status.is-expired { color: var(--error); background: rgba(248, 113, 113, .12); }

@media (max-width: 580px) {
    .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
    .pp-card { min-height: 170px; padding: 18px 14px 14px; gap: 6px; border-radius: 16px; }
    .pp-card:hover { transform: none; }
    .pp-name { font-size: 15px; }
    .pp-check { width: 24px; height: 24px; }
    .pp-card:has(.pp-radio:checked) .pp-check::after { top: 3px; left: 6px; width: 5px; height: 10px; }
    .pp-price { font-size: 26px; }
    .pp-old, .pp-duration { font-size: 12px; }
    .pp-features { display: none; }
    .pp-tag { font-size: 8px; padding: 3px 9px; }
}

/* ===== Footer: brand row with store badges ===== */
html body.reference-theme .site-footer { border-top: 1px solid var(--border-color) !important; }

html body.reference-theme .footer-inner {
    width: min(1180px, calc(100% - 32px)) !important;
    gap: 22px !important;
    padding: 36px 0 24px !important;
    background: transparent !important;
}

.footer-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.footer-brand img { display: block; width: 130px; height: auto; }
.footer-tagline { margin: 0; color: var(--text-secondary); font-size: 14px; }
.footer-stores { display: flex; gap: 12px; }
.footer-stores img { display: block; width: 135px; height: auto; border-radius: 8px; transition: transform .15s ease; }
.footer-stores a:hover img { transform: translateY(-2px); }

html body.reference-theme .footer-links { justify-content: center; gap: 6px 4px; }
html body.reference-theme .footer-links a { min-height: 36px !important; padding: 0 14px !important; color: var(--text-secondary) !important; font-size: 12px !important; letter-spacing: .06em; }
html body.reference-theme .footer-links a:hover,
html body.reference-theme .footer-links a.active { color: #FFFFFF !important; background: var(--surface-hover) !important; }
html body.reference-theme .footer-copy { color: var(--text-muted) !important; font-size: 13px !important; }

@media (max-width: 760px) {
    .footer-top { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
    .footer-stores img { width: 128px; }
    html body.reference-theme .footer-links a { padding: 0 10px !important; font-size: 11px !important; }
}

.pp-legal { width: min(100%, 1080px); margin: 16px auto 0; color: var(--text-muted); font-size: 13px; text-align: center; }
.pp-legal a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

/* Per-card Pay & Watch, pinned to the bottom of each plan card. */
html body.reference-theme .pp-card-btn {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 999px;
    color: #FFFFFF !important;
    background: var(--brand-gradient) !important;
    box-shadow: var(--glow-subtle);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: filter .15s ease, transform .15s ease;
}

html body.reference-theme .pp-card-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
html body.reference-theme .pp-card-btn.is-disabled { color: var(--text-secondary) !important; background: var(--surface-hover) !important; box-shadow: none; cursor: default; transform: none; }
.pp-card .checkout-error { margin: 0; color: var(--error); font-size: 12px; }

@media (max-width: 580px) {
    html body.reference-theme .pp-card-btn { min-height: 36px; font-size: 11px; }
}

/* ===== Home rows: View All pill and scroll arrows ===== */
html body.reference-theme .section-head a.view-all-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 7px 10px 7px 14px !important;
    border: 1px solid var(--border-hover) !important;
    border-radius: 999px !important;
    color: var(--text-primary) !important;
    background: var(--surface) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

html body.reference-theme .section-head a.view-all-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
html body.reference-theme .section-head a.view-all-btn:hover { color: #FFFFFF !important; border-color: var(--primary) !important; background: var(--brand-gradient) !important; }
html body.reference-theme .section-head a.view-all-btn:hover svg { transform: translateX(2px); }

html body.reference-theme .row-arrow {
    position: absolute;
    top: 38%;
    z-index: 4;
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #FFFFFF;
    background: rgba(7, 6, 6, .78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease, background .15s ease, border-color .15s ease;
}

html body.reference-theme .row-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
html body.reference-theme .row-arrow-prev { left: -14px; }
html body.reference-theme .row-arrow-next { right: -14px; }
html body.reference-theme .row-arrow:hover { border-color: var(--primary); background: var(--primary); }
html body.reference-theme .row-arrow:focus-visible { opacity: 1; outline: 2px solid var(--accent-gold); outline-offset: 2px; }
html body.reference-theme .row-section.is-scrollable .row-arrow { display: grid; }
html body.reference-theme .row-section.is-scrollable:hover .row-arrow { opacity: 1; }

/* Touch screens have no hover, so keep the arrows visible (smaller, inside the row edge). */
@media (hover: none) {
    html body.reference-theme .row-section.is-scrollable .row-arrow { opacity: .92; width: 34px; height: 34px; }
    html body.reference-theme .row-arrow svg { width: 18px; height: 18px; }
    html body.reference-theme .row-arrow-prev { left: 4px; }
    html body.reference-theme .row-arrow-next { right: 4px; }
}

/* ===== Live chat: floating button and chat window ===== */
html body.reference-theme .live-chat-toggle {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 22px 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #FFFFFF !important;
    background: var(--brand-gradient) !important;
    box-shadow: var(--glow-medium), 0 12px 28px rgba(0, 0, 0, .45) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

html body.reference-theme .live-chat-toggle:hover { transform: translateY(-2px); box-shadow: var(--glow-strong), 0 14px 32px rgba(0, 0, 0, .5) !important; }
html body.reference-theme .live-chat-toggle-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

html body.reference-theme .live-chat-toggle strong:not([hidden]) {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid var(--bg-primary);
    border-radius: 999px;
    color: #1A0E00 !important;
    background: var(--accent-gold) !important;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

html body.reference-theme .live-chat-box {
    overflow: hidden;
    border: 1px solid var(--border-hover) !important;
    border-radius: 20px !important;
    background: var(--bg-secondary) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6), var(--glow-subtle) !important;
}

html body.reference-theme .live-chat-box header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    background: linear-gradient(135deg, #2A1311, var(--surface)) !important;
}

html body.reference-theme .live-chat-box header div { flex: 1; display: grid; gap: 2px; }
html body.reference-theme .live-chat-box header strong { color: #FFFFFF; font-size: 16px; }
html body.reference-theme .live-chat-box header span { display: flex; align-items: center; gap: 6px; color: var(--text-secondary) !important; font-size: 12px; }

html body.reference-theme .live-chat-avatar {
    display: grid;
    flex: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    background: var(--bg-primary);
    overflow: hidden;
}

html body.reference-theme .live-chat-avatar img { width: 36px; height: auto; }
html body.reference-theme .live-chat-online { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

html body.reference-theme .live-chat-box header button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0 !important;
    border-radius: 50% !important;
    color: var(--text-secondary) !important;
    background: rgba(255, 255, 255, .06) !important;
    font-size: 22px;
    line-height: 1;
}

html body.reference-theme .live-chat-box header button:hover { color: #FFFFFF !important; background: var(--primary) !important; }

html body.reference-theme .live-chat-messages {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 16px !important;
    background:
        radial-gradient(circle at 100% 0, rgba(227, 32, 27, .08), transparent 60%),
        var(--bg-secondary) !important;
}

html body.reference-theme .live-chat-message {
    max-width: 80% !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 16px !important;
    font-size: 14px;
    line-height: 1.4;
}

html body.reference-theme .live-chat-message.from-admin { align-self: flex-start; border-bottom-left-radius: 4px !important; background: var(--surface-hover) !important; }
html body.reference-theme .live-chat-message.from-user { align-self: flex-end; border-bottom-right-radius: 4px !important; color: #FFFFFF !important; background: var(--brand-gradient) !important; }
html body.reference-theme .live-chat-message p { margin: 0; }
html body.reference-theme .live-chat-message span { display: block; margin-top: 4px; font-size: 10px; opacity: .75; }
html body.reference-theme .live-chat-message.from-user span { color: rgba(255, 255, 255, .85) !important; text-align: right; }

html body.reference-theme .live-chat-empty {
    margin: auto;
    padding: 18px;
    border: 1px dashed var(--border-hover);
    border-radius: 14px;
    color: var(--text-secondary) !important;
    font-size: 13px;
    text-align: center;
}

html body.reference-theme .live-chat-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px !important;
    border-top: 1px solid var(--border-color) !important;
    background: var(--surface) !important;
}

html body.reference-theme .live-chat-form input {
    height: 46px !important;
    padding: 0 16px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 999px !important;
    background: var(--bg-primary) !important;
}

html body.reference-theme .live-chat-form input:focus { border-color: var(--primary) !important; outline: none; }

html body.reference-theme .live-chat-form button {
    display: grid;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    place-items: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--brand-gradient) !important;
}

html body.reference-theme .live-chat-form button svg { width: 20px; height: 20px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
    html body.reference-theme .live-chat-toggle { min-height: 48px; padding: 0 16px 0 14px !important; font-size: 14px !important; }
}

/* Only <html> may scroll: clip (not hidden) keeps <body> from becoming a second vertical scroll container. */
html body,
html body.reference-theme {
    overflow-x: clip !important;
    overflow-y: visible !important;
}
