/* PACKTV-UX-1-TEMA-CLARO-ESCURO-SISTEMA-R1
   Shared appearance layer for public home, checkout, Minha PackTV and Admin.
   Loaded after each area's existing CSS to avoid changing commercial/financial logic. */

:root{
  color-scheme: dark;
  --pt-theme-accent:#ff155b;
  --pt-theme-accent-2:#ff4f83;
  --pt-theme-blue:#3b82f6;
  --pt-theme-control-bg:rgba(12,15,22,.78);
  --pt-theme-control-border:rgba(255,255,255,.12);
  --pt-theme-control-text:#eef2f7;
  --pt-theme-control-muted:#9ca6b7;
  --pt-theme-popover:#11161f;
  --pt-theme-popover-shadow:0 18px 55px rgba(0,0,0,.34);
}
html[data-theme="light"]{
  color-scheme: light;
  --pt-theme-control-bg:rgba(255,255,255,.88);
  --pt-theme-control-border:rgba(15,23,42,.12);
  --pt-theme-control-text:#111827;
  --pt-theme-control-muted:#667085;
  --pt-theme-popover:#fff;
  --pt-theme-popover-shadow:0 18px 55px rgba(15,23,42,.14);
}
html[data-theme="dark"]{color-scheme:dark}

/* Prevent theme transitions before the initial theme is resolved. */
html:not(.pt-theme-ready) *,html:not(.pt-theme-ready) *::before,html:not(.pt-theme-ready) *::after{transition:none!important}

/* Shared premium appearance control */
.pt-theme-slot{display:flex;align-items:center;flex:0 0 auto;position:relative;z-index:1200}
.pt-theme-control{position:relative;display:inline-flex;align-items:center}
.pt-theme-trigger{width:38px;height:38px;border:1px solid var(--pt-theme-control-border);border-radius:11px;background:var(--pt-theme-control-bg);color:var(--pt-theme-control-text);display:grid;place-items:center;cursor:pointer;padding:0;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:inset 0 1px rgba(255,255,255,.025);transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.pt-theme-trigger:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--pt-theme-accent) 30%,var(--pt-theme-control-border));box-shadow:0 9px 26px rgba(0,0,0,.08)}
.pt-theme-trigger:focus-visible,.pt-theme-option:focus-visible{outline:3px solid color-mix(in srgb,var(--pt-theme-blue) 30%,transparent);outline-offset:2px}
.pt-theme-trigger svg,.pt-theme-option svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pt-theme-menu{position:absolute;top:calc(100% + 10px);right:0;width:226px;padding:8px;border:1px solid var(--pt-theme-control-border);border-radius:15px;background:var(--pt-theme-popover);box-shadow:var(--pt-theme-popover-shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);opacity:0;visibility:hidden;transform:translateY(-5px) scale(.985);transform-origin:top right;pointer-events:none;transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:5000}
.pt-theme-control.is-open .pt-theme-menu{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.pt-theme-menu-head{padding:8px 9px 7px}
.pt-theme-menu-head strong{display:block;color:var(--pt-theme-control-text);font-size:12px;line-height:1.25}
.pt-theme-menu-head span{display:block;color:var(--pt-theme-control-muted);font-size:10px;line-height:1.45;margin-top:3px}
.pt-theme-options{display:grid;gap:3px}
.pt-theme-option{width:100%;min-height:40px;border:0;border-radius:10px;background:transparent;color:var(--pt-theme-control-muted);display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;text-align:left;padding:7px 9px;cursor:pointer;font-size:11px;font-weight:650}
.pt-theme-option:hover{background:color-mix(in srgb,var(--pt-theme-control-text) 5%,transparent);color:var(--pt-theme-control-text)}
.pt-theme-option[aria-checked="true"]{background:color-mix(in srgb,var(--pt-theme-accent) 9%,transparent);color:var(--pt-theme-control-text)}
.pt-theme-option[aria-checked="true"]::after{content:"";width:7px;height:7px;border-radius:999px;background:var(--pt-theme-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--pt-theme-accent) 12%,transparent)}
.pt-theme-option small{font-size:9px;font-weight:700;color:var(--pt-theme-control-muted)}
.pt-theme-option[aria-checked="true"] small{color:color-mix(in srgb,var(--pt-theme-accent) 72%,var(--pt-theme-control-text))}

@media(max-width:760px){
  .pt-theme-trigger{width:36px;height:36px;border-radius:10px}
  .pt-theme-menu{position:fixed;top:auto;right:14px;left:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:auto;transform:translateY(10px) scale(.99);transform-origin:bottom center;border-radius:17px;padding:10px}
  .pt-theme-control.is-open .pt-theme-menu{transform:none}
  .pt-theme-menu-head{padding:8px 8px 10px}
  .pt-theme-option{min-height:46px;font-size:12px}
}

/* =========================================================
   HOME / PUBLIC SITE
   ========================================================= */
html[data-theme="light"] body.pt-area-home{
  --bg:#f5f7fb;--bg-soft:#f8fafc;--surface:#ffffff;--surface-2:#f2f5f9;--surface-3:#e9eef5;
  --text:#111827;--muted:#667085;--line:rgba(15,23,42,.10);--line-strong:rgba(15,23,42,.17);
  background:radial-gradient(circle at 76% 0%,rgba(94,41,150,.055),transparent 26%),linear-gradient(180deg,#fff 0,#f7f8fb 42%,#f4f6f9 100%);
  color:var(--text);
}
html[data-theme="light"] body.pt-area-home .site-header{background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.84) 70%,rgba(255,255,255,0));}
html[data-theme="light"] body.pt-area-home .site-header.is-scrolled{background:rgba(255,255,255,.92);border-bottom-color:rgba(15,23,42,.09);box-shadow:0 10px 35px rgba(15,23,42,.055)}
html[data-theme="light"] body.pt-area-home .brand{border-right-color:rgba(15,23,42,.10)}
html[data-theme="light"] body.pt-area-home .desktop-nav a,
html[data-theme="light"] body.pt-area-home .header-link{color:#475467}
html[data-theme="light"] body.pt-area-home .desktop-nav a:hover,
html[data-theme="light"] body.pt-area-home .header-link:hover{color:#111827}
html[data-theme="light"] body.pt-area-home .menu-button span{background:#111827}
html[data-theme="light"] body.pt-area-home .mobile-nav{background:rgba(255,255,255,.97);border-bottom-color:rgba(15,23,42,.1);box-shadow:0 20px 45px rgba(15,23,42,.09)}
html[data-theme="light"] body.pt-area-home .mobile-nav a{color:#344054}
html[data-theme="light"] body.pt-area-home .mobile-nav a:hover{background:#f2f4f7;color:#111827}
/* Hero remains cinematic for media readability; surrounding chrome follows theme. */
html[data-theme="light"] body.pt-area-home .hero{background:#12151b}
html[data-theme="light"] body.pt-area-home .hero-shade{background:linear-gradient(90deg,rgba(6,8,13,.90) 0%,rgba(6,8,13,.77) 28%,rgba(6,8,13,.42) 55%,rgba(6,8,13,.12) 80%),linear-gradient(0deg,#f7f8fb 0%,rgba(7,9,14,.22) 17%,transparent 38%),linear-gradient(180deg,rgba(0,0,0,.24),transparent 32%)}
html[data-theme="light"] body.pt-area-home .hero h1{color:#fff}
html[data-theme="light"] body.pt-area-home .hero-copy>p{color:#eef1f5}
html[data-theme="light"] body.pt-area-home .hero-copy small{color:#d7dce4}
html[data-theme="light"] body.pt-area-home .button-glass{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28);color:#fff}
html[data-theme="light"] body.pt-area-home .trust-bar{background:linear-gradient(180deg,#fff,#f7f9fc);border-color:rgba(15,23,42,.09)}
html[data-theme="light"] body.pt-area-home .section:before{background:linear-gradient(90deg,transparent,rgba(15,23,42,.09),transparent)}
html[data-theme="light"] body.pt-area-home .poster-card{background:linear-gradient(155deg,#eef2f7,#e4e9f0);border-color:rgba(15,23,42,.11);box-shadow:0 22px 55px rgba(15,23,42,.12)}
html[data-theme="light"] body.pt-area-home .poster-card:hover{box-shadow:0 30px 70px rgba(15,23,42,.18),0 0 0 1px color-mix(in srgb,var(--card-accent) 52%,transparent)}
/* Poster and video cards intentionally keep dark media overlays. */
html[data-theme="light"] body.pt-area-home .feature-showcase{background:radial-gradient(circle at 16% 28%,rgba(65,215,255,.08),transparent 29%),radial-gradient(circle at 86% 74%,rgba(255,21,91,.07),transparent 31%),linear-gradient(180deg,#f8fafc,#f2f5f9 52%,#f8fafc)}
html[data-theme="light"] body.pt-area-home .feature-tabs{background:linear-gradient(160deg,#fff,#f4f6fa);border-color:rgba(15,23,42,.10);box-shadow:0 16px 40px rgba(15,23,42,.06)}
html[data-theme="light"] body.pt-area-home .feature-tab{color:#344054}
html[data-theme="light"] body.pt-area-home .feature-tab:hover{background:rgba(15,23,42,.04)}
html[data-theme="light"] body.pt-area-home .feature-tab.is-active{color:#101828;background:linear-gradient(135deg,rgba(255,21,91,.09),rgba(255,255,255,.95));border-color:rgba(255,72,132,.28);box-shadow:inset 3px 0 0 var(--pink),0 12px 30px rgba(15,23,42,.07)}
html[data-theme="light"] body.pt-area-home .feature-tab-copy small{color:#667085}
html[data-theme="light"] body.pt-area-home .feature-tab>i{color:#98a2b3}
html[data-theme="light"] body.pt-area-home .plan-card{background:linear-gradient(155deg,#fff,#f7f9fc);border-color:rgba(15,23,42,.11);box-shadow:0 20px 55px rgba(15,23,42,.08)}
html[data-theme="light"] body.pt-area-home .plan-card:hover{border-color:rgba(255,21,91,.26);box-shadow:0 26px 70px rgba(15,23,42,.11)}
html[data-theme="light"] body.pt-area-home .plan-featured{background:linear-gradient(155deg,#fff8fb,#fff)}
html[data-theme="light"] body.pt-area-home .button-secondary{background:#eef2f6;border-color:rgba(15,23,42,.11);color:#182230}
html[data-theme="light"] body.pt-area-home .button-secondary:hover{background:#e5eaf1;border-color:rgba(15,23,42,.18)}
html[data-theme="light"] body.pt-area-home .addons-strip>div{background:#fff;border-color:rgba(15,23,42,.10);box-shadow:0 10px 28px rgba(15,23,42,.05)}
html[data-theme="light"] body.pt-area-home .devices-grid>div{background:#fff;border-color:rgba(15,23,42,.1)}
html[data-theme="light"] body.pt-area-home .channel-card{background:linear-gradient(155deg,#fff,#f7f9fc);border-color:rgba(15,23,42,.1)}
html[data-theme="light"] body.pt-area-home .channel-logo{background:#fff;border-color:rgba(15,23,42,.06)}
html[data-theme="light"] body.pt-area-home .site-footer{background:#eef2f6;border-color:rgba(15,23,42,.10)}
html[data-theme="light"] body.pt-area-home .site-footer a{color:#667085}
html[data-theme="light"] body.pt-area-home .site-footer a:hover{color:#111827}
html[data-theme="light"] body.pt-area-home .footer-bottom{border-color:rgba(15,23,42,.10);color:#7b8494}
html[data-theme="light"] body.pt-area-home .final-cta-shade{background:linear-gradient(0deg,#f4f6f9 0%,rgba(7,9,14,.74) 48%,rgba(7,9,14,.22) 82%)}
html[data-theme="light"] body.pt-area-home .final-cta h2{color:#fff}
html[data-theme="light"] body.pt-area-home .final-cta p{color:#e4e8ef}
html[data-theme="light"] body.pt-area-home .mobile-cta{background:rgba(255,255,255,.94);border-top-color:rgba(15,23,42,.10);box-shadow:0 -14px 38px rgba(15,23,42,.09)}
html[data-theme="light"] body.pt-area-home .mobile-cta a{background:#eef2f6;border-color:rgba(15,23,42,.08);color:#182230}
html[data-theme="light"] body.pt-area-home .mobile-cta a:last-child{color:#fff;background:linear-gradient(135deg,var(--pink),var(--pink-2))}
@media(max-width:600px){
  html[data-theme="light"] body.pt-area-home .hero-shade{background:linear-gradient(0deg,#f7f8fb 0%,#f7f8fb 41%,rgba(7,9,14,.63) 63%,rgba(7,9,14,.10) 100%)}
  html[data-theme="light"] body.pt-area-home .hero-copy{color:#101828}
  html[data-theme="light"] body.pt-area-home .hero h1{color:#101828}
  html[data-theme="light"] body.pt-area-home .hero-copy>p{color:#475467}
  html[data-theme="light"] body.pt-area-home .hero-copy small{color:#667085}
  html[data-theme="light"] body.pt-area-home .hero-buttons .button-glass{background:#eef2f6;border-color:rgba(15,23,42,.12);color:#182230}
}

/* =========================================================
   CHECKOUT / ASSINAR
   ========================================================= */
html[data-theme="light"] body.pt-area-checkout{
  --checkout-bg:#f5f7fb;--checkout-panel:rgba(255,255,255,.96);--checkout-panel-soft:rgba(248,250,252,.95);
  --checkout-line:rgba(15,23,42,.10);--checkout-line-strong:rgba(15,23,42,.18);--checkout-text:#101828;--checkout-muted:#667085;
  --glass:rgba(15,23,42,.035);--border:var(--checkout-line);--text:var(--checkout-text);--muted:var(--checkout-muted);
  background:radial-gradient(circle at 80% 0%,rgba(111,66,193,.06),transparent 24%),linear-gradient(180deg,#fff,#f5f7fb 40%,#f3f5f8);
  color:var(--checkout-text);
}
html[data-theme="light"] body.pt-area-checkout .checkout-header{background:rgba(255,255,255,.88);border-color:rgba(15,23,42,.09);box-shadow:0 10px 34px rgba(15,23,42,.055);backdrop-filter:blur(18px)}
html[data-theme="light"] body.pt-area-checkout .checkout-back{color:#475467}
html[data-theme="light"] body.pt-area-checkout .checkout-back:hover{color:#101828}
html[data-theme="light"] body.pt-area-checkout .checkout-hero-copy p{color:#667085}
html[data-theme="light"] body.pt-area-checkout .checkout-progress,
html[data-theme="light"] body.pt-area-checkout .stepper,
html[data-theme="light"] body.pt-area-checkout .checkout-panel,
html[data-theme="light"] body.pt-area-checkout .plano-card,
html[data-theme="light"] body.pt-area-checkout .resumo-card,
html[data-theme="light"] body.pt-area-checkout .card,
html[data-theme="light"] body.pt-area-checkout .form-card{background:rgba(255,255,255,.96);border-color:rgba(15,23,42,.10);box-shadow:0 18px 50px rgba(15,23,42,.07)}
html[data-theme="light"] body.pt-area-checkout input,
html[data-theme="light"] body.pt-area-checkout select,
html[data-theme="light"] body.pt-area-checkout textarea{background:#fff!important;border-color:rgba(15,23,42,.14)!important;color:#101828!important;box-shadow:none}
html[data-theme="light"] body.pt-area-checkout input::placeholder,
html[data-theme="light"] body.pt-area-checkout textarea::placeholder{color:#98a2b3}
html[data-theme="light"] body.pt-area-checkout input:focus,
html[data-theme="light"] body.pt-area-checkout select:focus,
html[data-theme="light"] body.pt-area-checkout textarea:focus{border-color:rgba(255,21,91,.55)!important;box-shadow:0 0 0 3px rgba(255,21,91,.08)!important}
html[data-theme="light"] body.pt-area-checkout .opcao-btn,
html[data-theme="light"] body.pt-area-checkout .addon-row,
html[data-theme="light"] body.pt-area-checkout .plano-opcao,
html[data-theme="light"] body.pt-area-checkout .channel-card{background:#fff!important;border-color:rgba(15,23,42,.10)!important;color:#182230!important}
html[data-theme="light"] body.pt-area-checkout .opcao-btn:hover,
html[data-theme="light"] body.pt-area-checkout .addon-row:hover{background:#f8fafc!important;border-color:rgba(255,21,91,.24)!important}
html[data-theme="light"] body.pt-area-checkout .opcao-btn.selecionado,
html[data-theme="light"] body.pt-area-checkout .plano-opcao.selecionado{background:#fff7fa!important;border-color:rgba(255,21,91,.55)!important;box-shadow:0 0 0 1px rgba(255,21,91,.24),0 16px 36px rgba(255,21,91,.07)}
html[data-theme="light"] body.pt-area-checkout .navegacao{border-color:rgba(15,23,42,.10)}
html[data-theme="light"] body.pt-area-checkout .btn-voltar,
html[data-theme="light"] body.pt-area-checkout .secondary,
html[data-theme="light"] body.pt-area-checkout .btn-secondary{background:#eef2f6!important;border-color:rgba(15,23,42,.10)!important;color:#344054!important}
html[data-theme="light"] body.pt-area-checkout .btn-voltar:hover,
html[data-theme="light"] body.pt-area-checkout .secondary:hover,
html[data-theme="light"] body.pt-area-checkout .btn-secondary:hover{background:#e6ebf2!important}
html[data-theme="light"] body.pt-area-checkout .modal{background:rgba(15,23,42,.46)!important}
html[data-theme="light"] body.pt-area-checkout .modal-content,
html[data-theme="light"] body.pt-area-checkout .modal-card,
html[data-theme="light"] body.pt-area-checkout #modal-pagamento .modal-content{background:#fff!important;border-color:rgba(15,23,42,.12)!important;color:#101828!important;box-shadow:0 30px 100px rgba(15,23,42,.2)}
html[data-theme="light"] body.pt-area-checkout .modal-header{border-color:rgba(15,23,42,.09)!important}
html[data-theme="light"] body.pt-area-checkout .close,
html[data-theme="light"] body.pt-area-checkout .fechar-modal{color:#475467!important}
html[data-theme="light"] body.pt-area-checkout .pricing-promo-note{color:#0f766e}
html[data-theme="light"] body.pt-area-checkout .pix-container,
html[data-theme="light"] body.pt-area-checkout .payment-box{background:#f8fafc!important;border-color:rgba(15,23,42,.10)!important}
html[data-theme="light"] body.pt-area-checkout .qr-code,
html[data-theme="light"] body.pt-area-checkout #qrcode{background:#fff}

/* =========================================================
   MINHA PACKTV / CENTRAL
   ========================================================= */
html[data-theme="light"] body.pt-area-central{
  --bg:#f5f7fb;--panel:#fff;--panel2:#f7f9fc;--line:#dce2ea;--text:#101828;--muted:#667085;
  background:radial-gradient(900px 520px at 80% -10%,#e6ecf7 0,transparent 60%),var(--bg);color:var(--text)
}
html[data-theme="light"] body.pt-area-central .top{border-bottom-color:rgba(15,23,42,.09);background:rgba(255,255,255,.86);box-shadow:0 10px 32px rgba(15,23,42,.045)}
html[data-theme="light"] body.pt-area-central .link{color:#475467}
html[data-theme="light"] body.pt-area-central .panel,
html[data-theme="light"] body.pt-area-central .card,
html[data-theme="light"] body.pt-area-central .addons,
html[data-theme="light"] body.pt-area-central .checkout,
html[data-theme="light"] body.pt-area-central .history{background:linear-gradient(145deg,#fff,#f8fafc);border-color:#dde3eb;box-shadow:0 16px 42px rgba(15,23,42,.06)}
html[data-theme="light"] body.pt-area-central .panel label{color:#475467}
html[data-theme="light"] body.pt-area-central .panel input{background:#fff;border-color:#d0d7e2;color:#101828}
html[data-theme="light"] body.pt-area-central .panel input:focus{border-color:#5e8eff;box-shadow:0 0 0 3px rgba(59,130,246,.10)}
html[data-theme="light"] body.pt-area-central .ghost{background:#eef2f6;color:#344054}
html[data-theme="light"] body.pt-area-central .step{background:#edf1f6;color:#667085}
html[data-theme="light"] body.pt-area-central .steps i{background:#d8dee8}
html[data-theme="light"] body.pt-area-central .notice{border-color:#d9e0e9;background:#f8fafc;color:#344054}
html[data-theme="light"] body.pt-area-central .notice.error{border-color:#f0b4c3;background:#fff4f7;color:#9f2144}
html[data-theme="light"] body.pt-area-central .notice.success{border-color:#a8dfcd;background:#f0fbf7;color:#116149}
html[data-theme="light"] body.pt-area-central .rows div,
html[data-theme="light"] body.pt-area-central .quick span{background:#f7f9fc;border-color:#e1e6ed;color:#344054}
html[data-theme="light"] body.pt-area-central .rows span{color:#667085}
html[data-theme="light"] body.pt-area-central .plan{background:#fff;border-color:#dce2ea;color:#101828;box-shadow:0 12px 35px rgba(15,23,42,.045)}
html[data-theme="light"] body.pt-area-central .plan p{color:#667085}
html[data-theme="light"] body.pt-area-central .addon{background:#fff;border-color:#dde3eb;color:#101828}
html[data-theme="light"] body.pt-area-central .addon.selected{background:#f5f8ff;border-color:#4b8cff}
html[data-theme="light"] body.pt-area-central .addon small{color:#667085}
html[data-theme="light"] body.pt-area-central .addon strong{color:#344054}
html[data-theme="light"] body.pt-area-central .checkout{box-shadow:0 18px 60px rgba(15,23,42,.13)}
html[data-theme="light"] body.pt-area-central .checkout small,
html[data-theme="light"] body.pt-area-central .checkout p,
html[data-theme="light"] body.pt-area-central .total em{color:#667085}
html[data-theme="light"] body.pt-area-central .historyRow{border-color:#e1e6ed;color:#667085}
html[data-theme="light"] body.pt-area-central .historyRow b{color:#101828}
html[data-theme="light"] body.pt-area-central .modal{background:rgba(15,23,42,.46)}
html[data-theme="light"] body.pt-area-central .modalCard{background:#fff;border-color:#d8dfe8;box-shadow:0 30px 95px rgba(15,23,42,.20)}
html[data-theme="light"] body.pt-area-central .close{color:#344054}
html[data-theme="light"] body.pt-area-central .modal textarea{background:#f8fafc;border-color:#d8dfe8;color:#344054}
html[data-theme="light"] body.pt-area-central .paymentState{background:#f8fafc;border-color:#dde3eb;color:#475467}

/* =========================================================
   ADMIN + ZAPPING HUB
   ========================================================= */
html[data-theme="light"] body.pt-area-admin,
html[data-theme="light"] body.pt-area-zapping{
  --bg:#f4f6f9;--panel:#fff;--panel2:#f7f9fc;--panel3:#eef2f6;--line:#dce2ea;--line-soft:rgba(15,23,42,.08);
  --text:#101828;--muted:#667085;--muted-2:#8992a3;--blue:#397cf3;--blue-soft:rgba(57,124,243,.08);
  background:radial-gradient(circle at 72% -20%,#e5ebf5 0,transparent 36%),var(--bg);color:var(--text)
}
html[data-theme="light"] body.pt-area-admin .sidebar,
html[data-theme="light"] body.pt-area-zapping .sidebar{background:rgba(255,255,255,.96);border-right-color:#e0e5ec;box-shadow:10px 0 35px rgba(15,23,42,.035)}
html[data-theme="light"] body.pt-area-admin .sidebar nav a,
html[data-theme="light"] body.pt-area-zapping .sidebar nav a{color:#5b6575}
html[data-theme="light"] body.pt-area-admin .sidebar nav a:hover,
html[data-theme="light"] body.pt-area-admin .sidebar nav a.active,
html[data-theme="light"] body.pt-area-zapping .sidebar nav a:hover,
html[data-theme="light"] body.pt-area-zapping .sidebar nav a.active{background:#eef4ff;color:#16233a}
html[data-theme="light"] body.pt-area-admin .sidebar form button,
html[data-theme="light"] body.pt-area-zapping .sidebar form button{border-color:#dce2ea;color:#667085}
html[data-theme="light"] body.pt-area-admin .topbar,
html[data-theme="light"] body.pt-area-zapping .topbar{border-bottom-color:#dfe4eb}
html[data-theme="light"] body.pt-area-admin .panel,
html[data-theme="light"] body.pt-area-admin .stat,
html[data-theme="light"] body.pt-area-zapping .panel,
html[data-theme="light"] body.pt-area-zapping .hub-card{border-color:#dce2ea;background:linear-gradient(180deg,#fff,#fafbfd);box-shadow:0 12px 32px rgba(15,23,42,.045),inset 0 1px #fff}
html[data-theme="light"] body.pt-area-admin th,
html[data-theme="light"] body.pt-area-admin td{border-color:#e5e9ef}
html[data-theme="light"] body.pt-area-admin th{color:#7a8494}
html[data-theme="light"] body.pt-area-admin td{color:#344054}
html[data-theme="light"] body.pt-area-admin td strong{color:#101828}
html[data-theme="light"] body.pt-area-admin tbody tr:hover{background:#f8fafc}
html[data-theme="light"] body.pt-area-admin .filters input,
html[data-theme="light"] body.pt-area-admin .filters select,
html[data-theme="light"] body.pt-area-admin .operation-grid input,
html[data-theme="light"] body.pt-area-admin .operation-grid select,
html[data-theme="light"] body.pt-area-admin .login-card input,
html[data-theme="light"] body.pt-area-zapping input,
html[data-theme="light"] body.pt-area-zapping select,
html[data-theme="light"] body.pt-area-zapping textarea{background:#fff;border-color:#d6dde7;color:#101828}
html[data-theme="light"] body.pt-area-admin .btn.ghost{background:#fff;border-color:#d6dde7;color:#475467}
html[data-theme="light"] body.pt-area-admin .btn.ghost:hover{background:#f8fafc;border-color:#bcc5d2}
html[data-theme="light"] body.pt-area-admin .flash{border-color:#dce2ea;background:linear-gradient(180deg,#fff,#f8fafc)}
html[data-theme="light"] body.pt-area-admin .flash li{background:#f3f6fa}
html[data-theme="light"] body.pt-area-admin .login-card{background:linear-gradient(180deg,#fff,#f9fafc);border-color:#d9e0e9;box-shadow:0 30px 90px rgba(15,23,42,.13),inset 0 1px #fff}
html[data-theme="light"] body.pt-area-admin .content-page-switch{background:#edf1f6;border-color:#d8dfe8}
html[data-theme="light"] body.pt-area-admin .content-page-switch a:hover{background:#fff;color:#101828}
html[data-theme="light"] body.pt-area-admin .checkout-editor-note{background:linear-gradient(145deg,rgba(45,212,167,.06),#fff);border-color:rgba(25,150,111,.18)}
html[data-theme="light"] body.pt-area-admin .checkout-editor-form>details,
html[data-theme="light"] body.pt-area-admin .checkout-copy-cards fieldset{background:#fff;border-color:#dce2ea}
html[data-theme="light"] body.pt-area-admin .checkout-copy-cards legend{color:#344054}
/* Relationship module */
html[data-theme="light"] body.pt-area-admin .outreach-preview{background:#f8fafc;border-color:#dde3eb}
html[data-theme="light"] body.pt-area-admin .outreach-preview>span{color:#7a8494}
html[data-theme="light"] body.pt-area-admin .outreach-preview>strong{color:#596579}
html[data-theme="light"] body.pt-area-admin .outreach-preview h3{color:#101828}
html[data-theme="light"] body.pt-area-admin .outreach-preview p{color:#667085}
html[data-theme="light"] body.pt-area-admin .outreach-send{border-color:#dde3eb}
html[data-theme="light"] body.pt-area-admin .outreach-send dl div{border-color:#e5e9ef}
html[data-theme="light"] body.pt-area-admin .outreach-send dt{color:#7a8494}
html[data-theme="light"] body.pt-area-admin .outreach-send dd{color:#344054}
html[data-theme="light"] body.pt-area-admin .outreach-cooldown{background:#fff9e8;color:#8a681f}
html[data-theme="light"] body.pt-area-admin .outreach-blocked{background:#fff9e8;border-color:#ecd99b}
html[data-theme="light"] body.pt-area-admin .outreach-blocked p{color:#79672f}
/* Zapping hub hardcoded dark surfaces */
html[data-theme="light"] body.pt-area-zapping .hub-tabs{border-color:#dce2ea}
html[data-theme="light"] body.pt-area-zapping .hub-tabs a{color:#667085;border-color:#dce2ea;background:#fff}
html[data-theme="light"] body.pt-area-zapping .hub-tabs a.on{color:#fff;background:#397cf3;border-color:#397cf3}
html[data-theme="light"] body.pt-area-zapping .metric,
html[data-theme="light"] body.pt-area-zapping .hub-section,
html[data-theme="light"] body.pt-area-zapping .settings-block,
html[data-theme="light"] body.pt-area-zapping .customer-card,
html[data-theme="light"] body.pt-area-zapping .divergence-card{background:#fff!important;border-color:#dce2ea!important;box-shadow:0 12px 34px rgba(15,23,42,.045)}
html[data-theme="light"] body.pt-area-zapping code{background:#eef2f6!important;color:#344054!important;border-color:#dce2ea!important}
html[data-theme="light"] body.pt-area-zapping .hub-foot{color:#7a8494;border-color:#dce2ea}
@media(max-width:760px){
  html[data-theme="light"] body.pt-area-admin .sidebar,
  html[data-theme="light"] body.pt-area-zapping .sidebar{box-shadow:28px 0 80px rgba(15,23,42,.16)}
  html[data-theme="light"] body.pt-area-admin .mobile-menu,
  html[data-theme="light"] body.pt-area-zapping .mobile-menu{background:#fff;color:#101828;border-color:#d8dfe8;box-shadow:0 12px 32px rgba(15,23,42,.12)}
}

/* Theme control placement by surface */
body.pt-area-home .header-actions .pt-theme-slot{margin-left:-5px}
body.pt-area-checkout .checkout-nav .pt-theme-slot{margin-left:auto;margin-right:4px}
body.pt-area-central .top .pt-theme-slot{margin-left:auto;margin-right:10px}
body.pt-area-admin .topbar .pt-theme-slot,
body.pt-area-zapping .topbar .pt-theme-slot{margin-left:auto;margin-right:16px}
body.pt-area-admin.login-body>.pt-theme-slot{position:fixed;right:20px;top:20px}
@media(max-width:960px){body.pt-area-home .header-actions .pt-theme-slot{margin-left:0}}
@media(max-width:600px){body.pt-area-home .header-actions{gap:9px}}

/* =========================================================
   PACKTV-UX-2-TEMA-CLARO-HOME-PREMIUM-R1
   Refinamento exclusivo da HOME em modo claro.
   Mantém cards de mídia e CTA final cinematográficos; remove
   faixas escuras residuais das seções editoriais/comerciais.
   ========================================================= */
html[data-theme="light"] body.pt-area-home{
  --bg:#f3f5f8;
  --bg-soft:#f7f8fa;
  --surface:#ffffff;
  --surface-2:#f1f4f7;
  --surface-3:#e8edf3;
  --text:#101828;
  --muted:#667085;
  background:
    radial-gradient(circle at 78% 4%,rgba(118,69,170,.045),transparent 24%),
    linear-gradient(180deg,#f8f9fb 0%,#f3f5f8 52%,#f7f8fa 100%);
}
html[data-theme="light"] body.pt-area-home .section-heading h2,
html[data-theme="light"] body.pt-area-home .heading-inline h2{color:#101828}
html[data-theme="light"] body.pt-area-home .section-heading>p,
html[data-theme="light"] body.pt-area-home .heading-inline>p{color:#667085}

/* Dark media cards remain intentionally cinematic inside the light theme. */
html[data-theme="light"] body.pt-area-home .poster-card .poster-content h3,
html[data-theme="light"] body.pt-area-home .event-card .event-copy h3,
html[data-theme="light"] body.pt-area-home .event-card .event-copy b{color:#fff}
html[data-theme="light"] body.pt-area-home .poster-card .poster-content p,
html[data-theme="light"] body.pt-area-home .event-card .event-copy p{color:#c6cbd4}

/* Editorial flow: subtle alternating neutral surfaces, no residual black bands. */
html[data-theme="light"] body.pt-area-home .events-section{
  background:
    radial-gradient(circle at 82% 24%,rgba(255,21,91,.055),transparent 30%),
    linear-gradient(180deg,#f7f8fa 0%,#f4f6f9 100%);
}
html[data-theme="light"] body.pt-area-home .channel-section{
  background:
    radial-gradient(circle at 18% 52%,rgba(61,126,255,.045),transparent 28%),
    linear-gradient(180deg,#f1f4f7 0%,#f7f8fa 48%,#f2f5f8 100%);
  border-top:1px solid rgba(15,23,42,.055);
  border-bottom:1px solid rgba(15,23,42,.055);
}
html[data-theme="light"] body.pt-area-home .channel-section .text-link{color:#475467}
html[data-theme="light"] body.pt-area-home .channel-section .text-link:hover{color:#101828}
html[data-theme="light"] body.pt-area-home .channel-card span{color:#475467}
html[data-theme="light"] body.pt-area-home .channel-card:hover{
  border-color:rgba(15,23,42,.16);
  background:linear-gradient(145deg,#fff,#f4f6fa);
  box-shadow:0 14px 34px rgba(15,23,42,.075);
}

html[data-theme="light"] body.pt-area-home .feature-showcase{
  background:
    radial-gradient(circle at 15% 30%,rgba(65,215,255,.055),transparent 30%),
    radial-gradient(circle at 86% 72%,rgba(255,21,91,.05),transparent 31%),
    linear-gradient(180deg,#f8fafc 0%,#f2f5f9 52%,#f8fafc 100%);
}

/* Plans become a premium light commercial surface instead of a dark-theme remnant. */
html[data-theme="light"] body.pt-area-home .plans-section{
  background:
    radial-gradient(circle at 78% 12%,rgba(255,21,91,.055),transparent 30%),
    radial-gradient(circle at 20% 86%,rgba(69,120,255,.04),transparent 27%),
    linear-gradient(180deg,#eef2f6 0%,#f6f8fa 54%,#eef2f6 100%);
  border-top:1px solid rgba(15,23,42,.06);
  border-bottom:1px solid rgba(15,23,42,.06);
}
html[data-theme="light"] body.pt-area-home .plans-section .section-heading h2{color:#101828}
html[data-theme="light"] body.pt-area-home .plans-section .section-heading>p{color:#667085}
html[data-theme="light"] body.pt-area-home .plan-card li{color:#475467}
html[data-theme="light"] body.pt-area-home .plan-card li>span{color:#159a72}
html[data-theme="light"] body.pt-area-home .addons-strip{
  background:rgba(255,255,255,.72);
  border-color:rgba(15,23,42,.10);
  box-shadow:0 14px 38px rgba(15,23,42,.055);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
html[data-theme="light"] body.pt-area-home .addons-strip p{color:#667085}

html[data-theme="light"] body.pt-area-home .devices-section{
  background:linear-gradient(180deg,#f8fafc 0%,#f4f6f9 100%);
}
html[data-theme="light"] body.pt-area-home .device-card span{color:#475467}
html[data-theme="light"] body.pt-area-home .device-card:hover{
  border-color:rgba(15,23,42,.16);
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}

/* Closing CTA stays cinematic even in light mode; do not wash the artwork to white. */
html[data-theme="light"] body.pt-area-home .final-cta{
  background:
    radial-gradient(circle at 82% 48%,rgba(106,42,112,.24),transparent 42%),
    linear-gradient(90deg,#05060a 0%,#07080d 48%,#11101a 100%);
  border-top-color:rgba(255,255,255,.055);
  border-bottom-color:rgba(255,255,255,.045);
}
html[data-theme="light"] body.pt-area-home .final-cta-shade{
  background:
    linear-gradient(90deg,#05060a 0%,rgba(5,6,10,.985) 28%,rgba(5,6,10,.82) 44%,rgba(5,6,10,.22) 66%,rgba(5,6,10,.05) 100%),
    linear-gradient(0deg,#05060a 0%,rgba(5,6,10,.38) 18%,transparent 42%);
}
html[data-theme="light"] body.pt-area-home .final-cta-fit-contain .final-cta-shade{
  background:
    linear-gradient(90deg,#05060a 0%,rgba(5,6,10,.98) 30%,rgba(5,6,10,.72) 47%,rgba(5,6,10,.12) 66%,transparent 100%),
    linear-gradient(0deg,#05060a 0%,rgba(5,6,10,.24) 16%,transparent 38%);
}
html[data-theme="light"] body.pt-area-home .final-cta .section-kicker{color:#ff8bb1}
html[data-theme="light"] body.pt-area-home .final-cta h2{color:#fff}
html[data-theme="light"] body.pt-area-home .final-cta p{color:#c4c9d2}

html[data-theme="light"] body.pt-area-home .site-footer{
  background:linear-gradient(180deg,#f2f5f8 0%,#eef2f6 100%);
  border-top-color:rgba(15,23,42,.10);
}

@media(max-width:960px){
  html[data-theme="light"] body.pt-area-home .final-cta-shade,
  html[data-theme="light"] body.pt-area-home .final-cta-fit-contain .final-cta-shade{
    background:linear-gradient(0deg,#05060a 0%,#05060a 42%,rgba(5,6,10,.93) 55%,rgba(5,6,10,.28) 84%,rgba(5,6,10,.08) 100%);
  }
}


/* =========================================================
   PACKTV-WEB-15 — HOME MOBILE THEME ACCESS
   On the public home, the appearance selector lives inside the
   hamburger navigation on mobile. This avoids Safari treating the
   bottom-sheet as fixed inside the composited/fixed header.
   Desktop and all other product areas keep the existing control.
   ========================================================= */
@media (max-width:960px){
  body.pt-area-home .mobile-nav .pt-theme-slot{
    display:block;
    width:100%;
    margin-top:10px;
    padding-top:14px;
    border-top:1px solid var(--pt-theme-control-border);
    position:relative;
    z-index:auto;
  }
  body.pt-area-home .mobile-nav .pt-theme-control{
    display:block;
    width:100%;
  }
  body.pt-area-home .mobile-nav .pt-theme-trigger{
    display:none!important;
  }
  body.pt-area-home .mobile-nav .pt-theme-menu{
    position:static!important;
    inset:auto!important;
    width:100%;
    padding:8px;
    border-radius:14px;
    background:color-mix(in srgb,var(--pt-theme-popover) 92%,transparent);
    border:1px solid var(--pt-theme-control-border);
    box-shadow:none;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    pointer-events:auto!important;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  body.pt-area-home .mobile-nav .pt-theme-menu-head{
    padding:7px 8px 10px;
  }
  body.pt-area-home .mobile-nav .pt-theme-menu-head strong{
    font-size:12px;
  }
  body.pt-area-home .mobile-nav .pt-theme-menu-head span{
    font-size:10px;
  }
  body.pt-area-home .mobile-nav .pt-theme-options{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }
  body.pt-area-home .mobile-nav .pt-theme-option{
    min-height:54px;
    grid-template-columns:1fr;
    grid-template-rows:20px auto 12px;
    justify-items:center;
    align-content:center;
    gap:3px;
    padding:8px 5px;
    text-align:center;
    border:1px solid transparent;
    border-radius:11px;
    font-size:11px;
    line-height:1.1;
  }
  body.pt-area-home .mobile-nav .pt-theme-option svg{
    width:18px;
    height:18px;
  }
  body.pt-area-home .mobile-nav .pt-theme-option small{
    min-height:11px;
    font-size:8px;
    line-height:1;
  }
  body.pt-area-home .mobile-nav .pt-theme-option[aria-checked="true"]{
    border-color:color-mix(in srgb,var(--pt-theme-accent) 32%,var(--pt-theme-control-border));
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pt-theme-accent) 10%,transparent);
  }
  body.pt-area-home .mobile-nav .pt-theme-option[aria-checked="true"]::after{
    display:none;
  }
}
