/* PatchTV 3.7.29: members see what they have (Premium ✓ badges, Your Premium hub, welcome sheet), never a
   price prompt; background scans show a small progress pill under the header on every page.
   No transforms on <main>; everything that appears late is position:fixed or has reserved space. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Belt and braces: if a cached visitor page is shown to a member, JS state hides every upsell. */
html[data-membership="premium"]:not([data-renew]) :is(.premium-tool-upsell,.premium-yearly-summary,.home-premium-teaser,.premium-card,.premium-plan-picker,.patchtv-preroll,.home-sponsor-slot,.member-upsell .premium-plan-picker,.member-account-link,#account-upgrade){display:none!important}

.premium-member-badge{display:inline-flex;align-items:center;gap:8px;width:fit-content;min-height:32px;padding:5px 12px;border-radius:999px;border:1px solid #587c37;background:#16210f;color:var(--lime);font-weight:900;font-size:13px;line-height:1.2;white-space:nowrap}
.premium-member-badge small{color:var(--muted);font-weight:700;font-size:12px}
a.premium-member-badge:hover{border-color:var(--lime)}
.premium-account-badge{align-self:center}
.product-shell>.premium-member-badge,.guided-shell>.premium-member-badge{margin:4px 0 18px}

/* Home: members get their feature shortcuts where visitors see the Plus teaser. */
.home-member-features{max-width:1100px;margin:44px auto;padding:24px 26px;border:1px solid #3d5527;border-radius:20px;background:linear-gradient(135deg,#152210,#10151b);display:flex;align-items:center;justify-content:space-between;gap:22px}
.home-member-features h2{margin:10px 0 6px}
.home-member-features p{color:var(--muted);margin:0;max-width:560px}
.home-member-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:470px}
.home-member-links a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font-weight:800;font-size:14px}
.home-member-links a.is-all{border-color:var(--lime);color:var(--lime)}
@media(max-width:760px){.home-member-features{display:grid;margin:30px 0;padding:20px}.home-member-links{justify-content:flex-start}}

/* Your Premium hub */
.premium-hub-shell{max-width:1040px;margin:0 auto}
.premium-hub-hero{max-width:760px}
.premium-hub-hero .premium-hub-badge{margin-top:4px}
.premium-hub-renew{padding:14px 16px;border:1px solid #6b5a1c;border-radius:14px;background:#211c09;color:#ffe598}
.premium-hub-renew a{color:var(--lime);font-weight:850;margin-left:6px}
.premium-hub-grid{list-style:none;margin:22px 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.premium-hub-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#11151d)}
.premium-hub-card h2{margin:0 0 3px;font-size:17px}
.premium-hub-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
.premium-hub-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#16210f;color:var(--lime);font-size:20px}
.premium-hub-card.is-locked .premium-hub-icon{background:var(--surface-2);color:var(--muted)}
.premium-hub-try{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 16px;border-radius:999px;border:0;background:var(--lime);color:var(--lime-ink,#0a1400);font-weight:900;font-size:14px;white-space:nowrap;cursor:pointer}
.premium-hub-try.is-locked{background:var(--surface-2);color:var(--text);border:1px solid var(--line)}
.premium-hub-on{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;border:1px solid #587c37;background:#16210f;color:var(--lime);font-weight:900;font-size:13px}
.premium-hub-free{margin:28px 0 8px;padding:20px;border:1px dashed var(--line);border-radius:16px}
.premium-hub-free h2{margin:0 0 6px;font-size:18px}
.premium-hub-free p{color:var(--muted);margin:0 0 12px}
.premium-hub-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0;padding:22px;border:1px solid #3d5527;border-radius:18px;background:linear-gradient(135deg,#152210,#10151b)}
.premium-hub-summary h2{margin:6px 0}
.premium-hub-summary p{color:var(--muted);margin:0}
.premium-hub-summary .button-link{flex-shrink:0}
@media(max-width:760px){.premium-hub-grid{grid-template-columns:minmax(0,1fr)}.premium-hub-card{grid-template-columns:40px minmax(0,1fr);padding:14px}.premium-hub-icon{width:40px;height:40px}.premium-hub-card>.premium-hub-try,.premium-hub-card>.premium-hub-on{grid-column:2;justify-self:start}.premium-hub-summary{display:grid}}

/* Imports: the member card replaces the price card in the same grid slot. */
.premium-member-card{border-color:#3d5527!important;background:linear-gradient(140deg,#152210,#0b1018)!important}
.premium-member-card .premium-member-badge{margin-bottom:6px}

/* Welcome sheet */
.premium-welcome-sheet>div>p{color:var(--muted);margin:0 0 12px}
.premium-welcome-sheet>div>p a{color:var(--lime)}
.premium-welcome-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:6px}
.premium-welcome-list li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.premium-welcome-list li>span{text-align:center}
.premium-welcome-list a{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:var(--lime);color:var(--lime-ink,#0a1400);font-weight:900;font-size:13px}

/* ?try= highlight: outline only, so nothing moves. */
.ptv-try-highlight{outline:3px solid var(--lime);outline-offset:6px;border-radius:14px;transition:outline-color .6s}

/* Background scan: fixed pill just under the sticky header (no layout shift on any page). */
.ptv-scan-pill{position:fixed;z-index:1100;top:76px;left:0;right:0;margin-inline:auto;width:max-content;max-width:calc(100vw - 24px);display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 14px;border-radius:999px;border:1px solid #587c37;background:rgba(18,28,14,.96);color:var(--lime);font-weight:850;font-size:13px;box-shadow:0 12px 30px -14px #000}
.ptv-scan-pill i{width:9px;height:9px;border-radius:50%;background:var(--lime);animation:ptv-scan-pulse 1.4s ease-in-out infinite}
.ptv-scan-pill[data-state="paused"] i{animation:none;background:#ffd85a}
.ptv-scan-pill[hidden]{display:none}
@keyframes ptv-scan-pulse{50%{opacity:.35}}
@media(max-width:680px){.ptv-scan-pill{top:64px}}
@media(prefers-reduced-motion:reduce){.ptv-scan-pill i{animation:none}}
.scan-leave-note{display:block;min-height:2.6em;color:var(--muted);visibility:hidden}
.scan-leave-note.is-visible{visibility:visible}
