/* =============================================================
   xot-premium — global premium features
   Extracted from xot-premium.php on 2026-05-04
   ============================================================= */
/* ══════════════════════════════════════
/* XOT PREMIUM FEATURES — GLOBAL STYLES
══════════════════════════════════════ */

/* ── BREAKING NEWS BANNER ── */
.xot-breaking {
    background: #F0506C;
    padding: 0.55rem 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 10000;
}
.xot-breaking.xot-breaking--show { display: flex; }
.xot-breaking__pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--color-surface, #141417); flex-shrink: 0;
    animation: xot-pulse 1.4s infinite;
}
@keyframes xot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}
.xot-breaking__label {
    font-size: 0.58rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 2px;
    color: #ffffff; white-space: nowrap;
}
.xot-breaking__text {
    font-size: 0.78rem; font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 600px;
}
.xot-breaking__link {
    color: #ffffff; text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700; white-space: nowrap;
    font-size: 0.75rem;
}
.xot-breaking__close {
    position: absolute; right: 1rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(255,255,255,0.6); cursor: pointer;
    padding: 0.25rem; line-height: 1;
    transition: color 0.15s;
}
.xot-breaking__close:hover { color: #ffffff; }

/* ── REACTIONS ── */
.xot-reactions {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin: 2rem 0;
}
.xot-reactions__label {
    font-size: 0.62rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,.35); margin-bottom: 1rem;
}
.xot-reactions__row {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.xot-reaction {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255,255,255,.06); border: 1.5px solid transparent;
    border-radius: 999px; cursor: pointer;
    font-size: 1rem; line-height: 1;
    transition: all 0.15s; font-family: inherit;
    user-select: none;
}
.xot-reaction:hover { background: rgba(255,255,255,.1); transform: scale(1.06); }
.xot-reaction.xot-reaction--active {
    background:rgba(240,80,108,.1); border-color: #F0506C;
    transform: scale(1.06);
}
.xot-reaction.xot-reaction--pop { animation: xot-pop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes xot-pop { 0%{transform:scale(1)} 50%{transform:scale(1.25)} 100%{transform:scale(1.06)} }
.xot-reaction__count {
    font-size: 0.75rem; font-weight: 800;
    color: rgba(255,255,255,.5); min-width: 14px;
    transition: color 0.15s;
}
.xot-reaction.xot-reaction--active .xot-reaction__count { color: #F0506C; }

/* ── SAVE FOR LATER ── */
.xot-save-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.38rem 0.8rem;
    background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 999px; cursor: pointer;
    font-size: 0.72rem; font-weight: 700;
    color: rgba(255,255,255,.5); font-family: inherit;
    transition: all 0.15s; white-space: nowrap;
}
.xot-save-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.xot-save-btn.xot-save-btn--saved {
    background:rgba(240,80,108,.1); border-color: #F0506C; color: #F0506C;
}
.xot-save-btn svg { transition: fill 0.15s, stroke 0.15s; }
.xot-save-btn.xot-save-btn--saved svg { fill: #F0506C; stroke: #F0506C; }

/* ── READING LIST PAGE ── */
.xot-reading-list-page { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.xot-reading-list-page h1 { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.xot-rl-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
}
.xot-rl-item:last-child { border-bottom: none; }
.xot-rl-item__img { width: 80px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: rgba(255,255,255,.06); display: block; }
.xot-rl-item__title { font-size: 0.95rem; font-weight: 800; color: #111; line-height: 1.3; }
.xot-rl-item__meta { font-size: 0.7rem; color: rgba(255,255,255,.35); margin-top: 0.3rem; }
.xot-rl-remove {
    margin-left: auto; background: none; border: none;
    color: rgba(255,255,255,.3); cursor: pointer; padding: 0.25rem; flex-shrink: 0;
    transition: color 0.15s;
}
.xot-rl-remove:hover { color: #F0506C; }

/* ── PEOPLE READING indicator ── */
.xot-live-readers {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,.35);
}
.xot-live-readers__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
    animation: xot-pulse 1.8s infinite;
}

/* ── NEWSLETTER GATE ── */
.xot-nl-gate {
    position: fixed; inset: 0; z-index: 999980;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.xot-nl-gate.xot-nl-gate--visible { opacity: 1; pointer-events: all; }
.xot-nl-gate__box {
    background: #111111;
    border-radius: 12px; max-width: 440px; width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}
.xot-nl-gate.xot-nl-gate--visible .xot-nl-gate__box {
    transform: translateY(0) scale(1);
}
.xot-nl-gate__close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.08); border: none;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4); cursor: pointer;
    transition: all 0.15s;
}
.xot-nl-gate__close:hover { background: rgba(255,255,255,0.15); color: #ffffff; }
.xot-nl-gate__eyebrow {
    font-size: 0.6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: #F0506C; margin-bottom: 0.75rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.xot-nl-gate__eyebrow::before,
.xot-nl-gate__eyebrow::after { content: ''; width: 20px; height: 2px; background: #F0506C; display: inline-block; }
.xot-nl-gate__title {
    font-size: 1.5rem; font-weight: 900;
    color: #ffffff; letter-spacing: -0.5px;
    margin-bottom: 0.5rem; line-height: 1.2;
}
.xot-nl-gate__sub {
    font-size: 0.85rem; color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem; line-height: 1.65;
}
.xot-nl-gate__form { display: flex; flex-direction: column; gap: 0.6rem; }
.xot-nl-gate__input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px; padding: 0.8rem 1rem;
    color: #ffffff; font-size: 0.88rem; font-family: inherit;
    outline: none; transition: border-color 0.15s;
}
.xot-nl-gate__input::placeholder { color: rgba(255,255,255,0.25); }
.xot-nl-gate__input:focus { border-color: #F0506C; }
.xot-nl-gate__btn {
    background: #F0506C; color: #ffffff;
    border: none; border-radius: 5px;
    padding: 0.85rem; font-size: 0.75rem;
    font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.2px; cursor: pointer;
    font-family: inherit; transition: background 0.15s;
}
.xot-nl-gate__btn:hover { background: #D94068; }
.xot-nl-gate__skip {
    background: none; border: none; color: rgba(255,255,255,0.2);
    font-size: 0.7rem; cursor: pointer; margin-top: 0.25rem;
    font-family: inherit; transition: color 0.15s;
}
.xot-nl-gate__skip:hover { color: rgba(255,255,255,0.5); }
.xot-nl-gate__perks {
    display: flex; justify-content: center; gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.xot-nl-gate__perk {
    display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    font-size: 0.65rem; font-weight: 600;
    color: rgba(255,255,255,0.35); text-align: center;
}
.xot-nl-gate__perk-icon { font-size: 1.2rem; }

/* ── MOBILE BOTTOM NAV ── */
.xot-mob-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9990;
    background: rgba(12,12,12,0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 0.45rem 0 max(0.45rem, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 40px rgba(0,0,0,0.5);
}
.xot-mob-nav__inner {
    display: flex; align-items: flex-end;
    justify-content: space-around;
    max-width: 520px; margin: 0 auto;
    padding: 0 0.25rem;
}
.xot-mob-nav__item {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.2rem; text-decoration: none;
    color: rgba(255,255,255,0.28);
    font-size: 0.52rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.7px;
    padding: 0.35rem 0.6rem 0.25rem;
    border-radius: 10px; transition: color 0.15s;
    position: relative; cursor: pointer;
    background: none; border: none; font-family: inherit;
    min-width: 52px;
}
.xot-mob-nav__item.active { color: #ffffff; }
.xot-mob-nav__item:hover { color: rgba(255,255,255,0.6); }
.xot-mob-nav__item.active svg { stroke: #F0506C; filter: drop-shadow(0 0 6px rgba(240,80,108,0.6)); }

/* Premium gold tab */
.xot-mob-nav__item--premium { color: #c9a227 !important; }
.xot-mob-nav__item--premium svg { filter: drop-shadow(0 0 5px rgba(201,162,39,0.5)); }
/* Join tab — subtle highlight */
.xot-mob-nav__item--join { color: rgba(255,255,255,0.5) !important; }

/* Active indicator dot */
.xot-mob-nav__item.active::after {
    content: '';
    position: absolute; bottom: -2px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    background: #F0506C; border-radius: 50%;
}

/* Badge */
.xot-mob-nav__badge {
    position: absolute; top: 1px; right: 8px;
    background: #F0506C; color: #ffffff;
    font-size: 0.48rem; font-weight: 900;
    min-width: 14px; height: 14px;
    border-radius: 999px; display: none;
    align-items: center; justify-content: center;
    padding: 0 3px; border: 1.5px solid rgba(12,12,12,0.96);
}
.xot-mob-nav__badge.show { display: flex; }

/* Trending — same minimal style as all other nav items */
.xot-mob-nav__item--trending { color: rgba(255,255,255,0.28); }
.xot-nav-icon-wrap { display: contents; }

@media (max-width: 768px) {
    .xot-mob-nav { display: block; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ── RESUME READING TOAST ── */
.xot-resume {
    position: fixed; bottom: 5rem; left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9980;
    background: #111111; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0.65rem 1.25rem 0.65rem 0.85rem;
    display: flex; align-items: center; gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    white-space: nowrap;
}
.xot-resume.xot-resume--show { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.xot-resume__thumb {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0; background: #333;
}
.xot-resume__text { flex: 1; min-width: 0; }
.xot-resume__label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); }
.xot-resume__title { font-size: 0.78rem; font-weight: 700; color: #ffffff; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.xot-resume__btn {
    background: #F0506C; color: #ffffff;
    border: none; border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; font-family: inherit; flex-shrink: 0;
    transition: background 0.15s;
}
.xot-resume__btn:hover { background: #D94068; }
.xot-resume__dismiss {
    background: none; border: none; color: rgba(255,255,255,0.25);
    cursor: pointer; padding: 0.15rem; line-height: 1; flex-shrink: 0;
    transition: color 0.15s;
}
.xot-resume__dismiss:hover { color: rgba(255,255,255,0.6); }

/* ── READING LIST PAGE HERO ── */
.xot-rl-hero {
    background: #111; padding: 3rem 2rem 2.5rem;
    border-bottom: 3px solid #F0506C;
}
.xot-rl-hero__inner { max-width: 800px; margin: 0 auto; }
.xot-rl-hero__label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; color: #F0506C; margin-bottom: 0.5rem; }
.xot-rl-hero__title { font-size: 2.5rem; font-weight: 900; color: #fff; letter-spacing: -1px; margin: 0; }
.xot-rl-hero__count { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 0.4rem; }

/* ── INFINITE SCROLL NUDGE ── */
.xot-scroll-nudge {
    background: var(--color-surface, #141417); border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; padding: 1.5rem;
    text-align: center; margin: 2rem auto;
    max-width: 480px; display: none;
}
.xot-scroll-nudge.show { display: block; }
.xot-scroll-nudge__emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.xot-scroll-nudge__title { font-size: 1rem; font-weight: 900; color: #111; margin-bottom: 0.3rem; }
.xot-scroll-nudge__sub { font-size: 0.82rem; color: rgba(255,255,255,.35); margin-bottom: 1rem; }
.xot-scroll-nudge__btn {
    background: #111; color: #fff; border: none;
    padding: 0.65rem 1.5rem; border-radius: 5px;
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; font-family: inherit;
}

/* ── CATEGORY PROGRESS BAR COLOURS ── */
body.cat-video    #read-progress { background: #3a86ff !important; }
body.cat-music    #read-progress { background: #f72585 !important; }
body.cat-celebrity #read-progress { background: #ff9f1c !important; }
body.cat-lifestyle #read-progress { background: #06d6a0 !important; }
body.cat-film     #read-progress { background: #F0506C !important; }
/* default stays brand red */

/* ── BOTTOM SHEETS (Explore + More) ── */
.xot-sheet-backdrop {
    position: fixed; inset: 0;
    z-index: 9993;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.xot-sheet-backdrop.open { opacity: 1; pointer-events: all; }

.xot-bottom-sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9994;
    background: #141414;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    box-shadow: 0 -20px 60px rgba(0,0,0,0.6);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Hidden by default — NOT in the page flow */
    pointer-events: none;
}
.xot-bottom-sheet.open {
    transform: translateY(0);
    pointer-events: all;
}

.xot-sheet-handle {
    display: flex; justify-content: center;
    padding: 0.85rem 0 0.5rem;
}
.xot-sheet-handle::before {
    content: ''; width: 36px; height: 4px;
    background: rgba(255,255,255,0.15); border-radius: 4px;
}

.xot-sheet-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0.25rem 1.5rem 1rem;
}
.xot-sheet-title {
    font-size: 0.6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 3px;
    color: rgba(255,255,255,0.25);
}
.xot-sheet-close {
    background: rgba(255,255,255,0.08); border: none;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.45); cursor: pointer;
    transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.xot-sheet-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.xot-sheet-logo-wrap {
    padding: 0.85rem 1.5rem 0.6rem;
    display: block;
}
.xot-sheet-logo-wrap img {
    height: 28px;
    width: auto;
    display: block;
}


.xot-sheet-body { padding: 0 0 0.5rem; }

/* Category rows in Explore sheet */
.xot-sheet-cat-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.12s;
}
.xot-sheet-cat-row:last-child { border-bottom: none; }
.xot-sheet-cat-row:hover { background: rgba(255,255,255,0.05); }
.xot-sheet-cat-row__name {
    flex: 1;
    font-size: 0.95rem; font-weight: 700;
    color: rgba(255,255,255,0.85);
}
.xot-sheet-cat-row__count {
    font-size: 0.68rem; font-weight: 600;
    color: rgba(255,255,255,0.25);
    white-space: nowrap;
}
.xot-sheet-cat-row__chevron { color: rgba(255,255,255,0.2); flex-shrink: 0; }

/* Nav rows in More sheet */
.xot-sheet-nav-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    transition: background 0.12s;
}
.xot-sheet-nav-row:last-of-type { border-bottom: none; }
.xot-sheet-nav-row:hover { background: rgba(255,255,255,0.05); color: #fff; }
.xot-sheet-nav-row__icon { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.xot-sheet-nav-row__label {
    flex: 1;
    font-size: 0.95rem; font-weight: 700;
}

/* Legal links row */
.xot-sheet-legal {
    display: flex; flex-wrap: wrap; gap: 0.25rem 1rem;
    padding: 1.25rem 1.5rem 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.xot-sheet-legal a {
    font-size: 0.68rem; font-weight: 600;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.15s;
}
.xot-sheet-legal a:hover { color: rgba(255,255,255,0.6); }
.xot-sheet-legal-btn {
    font-size: 0.68rem; font-weight: 600;
    color: rgba(255,255,255,0.25);
    background: none; border: none; padding: 0;
    cursor: pointer; font-family: inherit;
    transition: color 0.15s; text-align: left;
}
.xot-sheet-legal-btn:hover { color: rgba(255,255,255,0.6); }

/* === PWA install prompt + social proof === */
.xot-pwa-prompt {
    position: fixed; bottom: 5rem; left: 1rem; right: 1rem;
    z-index: 9985; max-width: 420px; margin: 0 auto;
    background: #111111; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transform: translateY(20px); opacity: 0; pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.xot-pwa-prompt.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.xot-pwa-prompt__inner { display:flex; align-items:center; gap:1rem; }
.xot-pwa-prompt__icon {
    width:44px; height:44px; background:#F0506C; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    color:#fff; flex-shrink:0;
}
.xot-pwa-prompt__text { flex:1; min-width:0; }
.xot-pwa-prompt__title { font-size:.85rem; font-weight:800; color:#fff; }
.xot-pwa-prompt__sub { font-size:.72rem; color:rgba(255,255,255,.4); line-height:1.4; }
.xot-pwa-prompt__actions { display:flex; flex-direction:column; gap:.4rem; flex-shrink:0; }
.xot-pwa-prompt__btn { padding:.4rem .85rem; border-radius:4px; font-size:.65rem; font-weight:800; text-transform:uppercase; letter-spacing:1px; cursor:pointer; font-family:inherit; border:none; white-space:nowrap; }
.xot-pwa-prompt__btn--install { background:#F0506C; color:#fff; }
.xot-pwa-prompt__btn--install:hover { background:#D94068; }
.xot-pwa-prompt__btn--dismiss { background:rgba(255,255,255,.08); color:rgba(255,255,255,.5); }

/* Social proof counter */
.xot-social-proof {
    display:inline-flex; align-items:center; gap:.4rem;
    font-size:.72rem; font-weight:600; color:rgba(255,255,255,.35);
}
.xot-social-proof__icon { font-size:.9rem; }
