/* =========================================================
   IPTVinCA premium layer: loaded on every page after home.css / blog.css.
   Brand colours come from the --accent / --purple / --pink tokens.
   ========================================================= */
:root{
  --p-glow:rgba(255,0,0,.45);
  --p-glass:rgba(7,11,26,.82);
  --p-line:linear-gradient(90deg, transparent, var(--accent), var(--pink), transparent);
  --p-radius:20px;
}
@property --p-angle{syntax:"<angle>"; initial-value:0deg; inherits:false;}

html{scroll-behavior:smooth; scroll-padding-top:88px;}
::selection{background:rgba(255,0,0,.85); color:#fff;}
:focus-visible{outline:2px solid var(--accent2); outline-offset:3px; border-radius:6px;}

/* ---------- header: near-opaque frosted glass from the first pixel ---------- */
header.site-header{background:var(--p-glass); -webkit-backdrop-filter:saturate(160%) blur(14px); backdrop-filter:saturate(160%) blur(14px); border-bottom:1px solid rgba(255,255,255,.06);}
header.site-header.scrolled{background:rgba(7,11,26,.92); box-shadow:0 10px 30px -18px rgba(0,0,0,.9);}
header.site-header::after{content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:var(--p-line); opacity:.35; pointer-events:none;}
nav.nav-links a{position:relative; padding:6px 0;}
nav.nav-links a::after{content:""; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:2px; background:linear-gradient(90deg, var(--accent), var(--pink)); transform:scaleX(0); transform-origin:left; transition:transform .25s ease;}
nav.nav-links a:hover::after, nav.nav-links a.active::after, nav.nav-links a[aria-current="page"]::after{transform:scaleX(1);}

/* ---------- primary buttons: gradient, inner highlight, coloured shadow, light sweep ---------- */
.btn-primary{position:relative; overflow:hidden; isolation:isolate; background:linear-gradient(135deg, #ff1f1f 0%, var(--accent) 45%, var(--purple) 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 10px 30px -10px var(--p-glow); font-weight:600;}
.btn-primary::after{content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform:translateX(-120%); transition:transform .7s ease;}
.btn-primary:hover{filter:none; transform:translateY(-2px); box-shadow:inset 0 1px 0 rgba(255,255,255,.32), 0 16px 36px -10px rgba(255,0,0,.7);}
.btn-primary:hover::after{transform:translateX(120%);}
.btn-secondary{-webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);}
.btn-secondary:hover{border-color:rgba(255,90,90,.45);}

/* ---------- cards: layered shadow, lift + brand edge glow on hover ---------- */
.adv-card, .plan, .trust-card, .vs-card, .promise-card, .author-box{box-shadow:0 1px 0 rgba(255,255,255,.04) inset, 0 2px 6px rgba(0,0,0,.25), 0 24px 48px -28px rgba(0,0,0,.85);}
@media (hover:hover){
  .adv-card:hover, .trust-card:hover, .promise-card:hover{transform:translateY(-4px); border-color:rgba(255,90,90,.45); box-shadow:0 0 0 1px rgba(255,90,90,.18), 0 30px 60px -28px rgba(255,0,0,.5);}
}

/* ---------- featured plan: animated conic border ---------- */
.plan.popular{border-color:transparent; background:
  linear-gradient(to bottom, rgba(40,8,16,.96), rgba(16,21,46,.98) 45%, var(--card)) padding-box,
  conic-gradient(from var(--p-angle), var(--accent), var(--pink), #ffb36b, var(--purple), var(--accent)) border-box;
  animation:p-spin 6s linear infinite;}
@keyframes p-spin{to{--p-angle:360deg;}}

/* ---------- footer: glows + brand line ---------- */
footer#contact{position:relative; overflow:hidden; background:
  radial-gradient(600px 240px at 10% 0%, rgba(255,0,0,.10), transparent 70%),
  radial-gradient(500px 220px at 90% 10%, rgba(216,6,33,.10), transparent 70%), transparent;}
footer#contact::before{content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--p-line); opacity:.6;}
.footer-company{margin-top:16px;}

/* ---------- "On this page" jump bar ---------- */
.jumpbar{position:relative; z-index:2; margin-top:-8px;}
.jumpbar-inner{display:flex; align-items:center; gap:10px; overflow-x:auto; scrollbar-width:none; padding:10px 24px 14px; -webkit-mask-image:linear-gradient(90deg, #000 85%, transparent); mask-image:linear-gradient(90deg, #000 85%, transparent);}
.jumpbar-inner::-webkit-scrollbar{display:none;}
.jumpbar-label{flex:none; font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--accent2);}
.jumpbar a{flex:none; display:inline-flex; align-items:center; min-height:40px; padding:0 16px; border-radius:999px; font-size:14px; font-weight:500; text-decoration:none; color:var(--fg); background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); transition:background .2s, border-color .2s, transform .2s;}
.jumpbar a:hover{background:rgba(255,0,0,.14); border-color:rgba(255,90,90,.45); transform:translateY(-1px);}
@media (min-width:1024px){ .jumpbar-inner{justify-content:center; -webkit-mask-image:none; mask-image:none;} }

/* ---------- comparison table ---------- */
.vs-wrap{border-radius:var(--p-radius); border:1px solid rgba(255,255,255,.1); background:linear-gradient(180deg, rgba(24,30,68,.75), rgba(13,17,42,.85)); overflow:hidden;}
.vs-table{width:100%; border-collapse:collapse; font-size:15px;}
.vs-table th, .vs-table td{padding:16px 18px; text-align:left; border-bottom:1px solid rgba(255,255,255,.07); vertical-align:middle;}
.vs-table thead th{font-family:"Sora","Inter",sans-serif; font-size:15px; background:rgba(255,255,255,.03);}
.vs-table thead th.us{background:linear-gradient(180deg, rgba(255,0,0,.22), rgba(255,0,0,.06)); color:#fff;}
.vs-table td.us{background:rgba(255,0,0,.06); font-weight:600;}
.vs-table tbody th{font-weight:500; color:rgba(248,250,252,.8);}
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td{border-bottom:0;}
.cmp{display:inline-flex; align-items:center; gap:8px;}
.cmp .icon{width:20px; height:20px; flex:none;}
.cmp-yes .icon{color:#34d399;}
.cmp-mid .icon{color:#fbbf24;}
.cmp-no .icon{color:#f87171;}
.vs-note{margin:16px auto 0; max-width:760px; text-align:center; font-size:13px; color:rgba(248,250,252,.6);}
.vs-ctas{justify-content:center; margin-top:28px;}
@media (max-width:767px){
  .vs-table thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td{display:block; width:100%;}
  .vs-table tbody tr{padding:14px 16px; border-bottom:1px solid rgba(255,255,255,.08);}
  .vs-table tbody th{padding:0 0 8px; border:0; font-family:"Sora","Inter",sans-serif; font-size:16px; color:#fff;}
  .vs-table td{display:flex; justify-content:space-between; gap:12px; padding:8px 0; border:0; font-size:14px;}
  .vs-table td::before{content:attr(data-label); color:rgba(248,250,252,.6); font-weight:500;}
  .vs-table td.us{background:none; border-radius:10px; padding:8px 10px; margin:0 -10px; width:calc(100% + 20px); background:rgba(255,0,0,.08);}
}

/* ---------- promise / guarantee band ---------- */
.promise{position:relative; overflow:hidden; border-radius:28px; padding:56px 28px; background:
  linear-gradient(135deg, rgba(48,6,14,.95), rgba(12,16,44,.97) 55%, rgba(30,6,18,.95));
  border:1px solid rgba(255,90,90,.2); box-shadow:0 40px 90px -40px rgba(255,0,0,.45);}
.promise::before{content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size:36px 36px; -webkit-mask-image:radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image:radial-gradient(ellipse at center, #000 30%, transparent 75%); pointer-events:none;}
.promise > *{position:relative;}
.promise-head{display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; max-width:680px; margin:0 auto 36px;}
.promise-head h2{font-size:32px; margin:0;}
.promise-head p{margin:0; color:rgba(248,250,252,.78); font-size:17px;}
.promise-seal{width:120px; height:120px; flex:none;}
.promise-seal .ring{transform-origin:60px 60px; animation:p-rotate 22s linear infinite;}
.promise-seal text{font:700 9.5px "Inter",sans-serif; letter-spacing:.08em; fill:#fff; text-transform:uppercase;}
@keyframes p-rotate{to{transform:rotate(360deg);}}
.promise-grid{display:grid; grid-template-columns:1fr; gap:16px;}
.promise-card{border-radius:18px; padding:22px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); transition:transform .3s, border-color .3s, box-shadow .3s;}
.promise-card .adv-icon{margin-bottom:14px;}
.promise-card h3{font-size:17px; margin:0 0 6px;}
.promise-card p{margin:0; font-size:14.5px; line-height:1.65; color:rgba(248,250,252,.75);}
.promise .hero-ctas{justify-content:center; margin-top:32px;}
@media (min-width:640px){ .promise-grid{grid-template-columns:1fr 1fr;} }
@media (min-width:1024px){ .promise{padding:72px 56px;} .promise-grid{grid-template-columns:repeat(4,1fr);} .promise-head h2{font-size:40px;} }

/* ---------- articles: progress, TOC, byline, author box ---------- */
.read-progress{position:fixed; left:0; right:0; top:0; height:3px; z-index:100; pointer-events:none;}
.read-progress span{display:block; height:100%; width:100%; transform:scaleX(0); transform-origin:left; background:linear-gradient(90deg, var(--accent), var(--pink)); box-shadow:0 0 12px rgba(255,0,0,.7);}
.article h2{line-height:1.25;}
.article h3{line-height:1.3;}
.article-byline a{color:var(--fg); text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(255,90,90,.6);}
.article-updated{color:#86efac;}
.article-updated .icon{color:#34d399 !important;}
.toc{margin:0 0 36px; border-radius:16px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(180deg, rgba(24,30,68,.7), rgba(13,17,42,.8)); overflow:hidden;}
.toc summary{display:flex; align-items:center; gap:10px; padding:16px 20px; min-height:52px; cursor:pointer; list-style:none; font-family:"Sora","Inter",sans-serif; font-weight:600; font-size:16px; color:#fff;}
.toc summary::-webkit-details-marker{display:none;}
.toc summary::after{content:""; margin-left:auto; width:9px; height:9px; border-right:2px solid var(--accent2); border-bottom:2px solid var(--accent2); transform:rotate(45deg); transition:transform .2s;}
.toc[open] summary::after{transform:rotate(-135deg);}
.toc summary .icon{color:var(--accent2);}
.toc-count{font:500 12px "Inter",sans-serif; color:rgba(248,250,252,.55);}
.article .toc ol{counter-reset:toc; list-style:none; margin:0; padding:4px 20px 18px; gap:2px;}
.article .toc li{counter-increment:toc; line-height:1.45;}
.article .toc a{display:flex; gap:12px; padding:8px 0; text-decoration:none; color:rgba(248,250,252,.85); font-size:15px;}
.article .toc a::before{content:counter(toc, decimal-leading-zero); flex:none; font-weight:700; font-size:13px; color:var(--accent2); padding-top:1px;}
.article .toc a:hover{color:#fff;}
.author-box{display:flex; gap:18px; align-items:flex-start; margin:48px 0 0; padding:22px; border-radius:18px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.035); font-size:15px; line-height:1.7;}
.author-box-logo{width:72px; height:auto; flex:none; border-radius:12px; background:#fff; padding:6px;}
.author-box p{margin:0 0 8px !important;}
.author-box-name{font-family:"Sora","Inter",sans-serif; font-weight:600; color:#fff;}
.author-box-links{display:flex; flex-wrap:wrap; gap:8px; font-size:14px;}
.author-box-links span{opacity:.4;}
@media (max-width:520px){ .author-box{flex-direction:column;} }

/* ---------- About / Contact / Editorial ---------- */
.trust-hero .trust-lead{max-width:720px; font-size:18px; line-height:1.7; color:rgba(248,250,252,.82); margin:18px 0 0;}
.trust-ctas{margin-top:28px;}
.trust-number{margin:16px 0 0; font-size:15px; color:rgba(248,250,252,.7);}
.trust-number a{color:#fff;}
.trust-facts{display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:8px;}
.trust-fact{display:flex; flex-direction:column; gap:4px; padding:20px; border-radius:16px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(180deg, rgba(24,30,68,.8), rgba(13,17,42,.9));}
.trust-fact strong{font-family:"Sora","Inter",sans-serif; font-size:28px; background:linear-gradient(90deg, var(--accent), var(--pink)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.trust-fact span{font-size:14px; color:rgba(248,250,252,.7);}
.trust-cards{display:grid; grid-template-columns:1fr; gap:16px; margin-top:8px;}
.trust-card{position:relative; border-radius:18px; padding:24px; border:1px solid rgba(255,255,255,.1); background:linear-gradient(180deg, rgba(24,30,68,.85), rgba(13,17,42,.9)); transition:transform .3s, border-color .3s, box-shadow .3s;}
.trust-card h2{font-size:18px; margin:14px 0 6px;}
.trust-card p{margin:0; font-size:15px; line-height:1.65; color:rgba(248,250,252,.75);}
.trust-card a{color:var(--accent2);}
.trust .article-cta .hero-ctas{justify-content:center;}
@media (min-width:768px){ .trust-facts{grid-template-columns:repeat(4,1fr);} .trust-cards{grid-template-columns:repeat(2,1fr);} }
@media (min-width:1100px){ .trust-cards{grid-template-columns:repeat(4,1fr);} }

/* ---------- mobile comfort ---------- */
@media (max-width:767px){
  .article{padding-left:20px; padding-right:20px;}
  .article-cta, .article-tags{margin-left:16px; margin-right:16px;}
  .article-cta{padding:26px 20px;}
  .btn{min-height:44px;}
  footer .footer-links a{display:inline-block; padding:6px 0;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .plan.popular, .promise-seal .ring{animation:none;}
  .btn-primary::after{display:none;}
  *{transition-duration:.01ms !important;}
}

/* helpers that only exist in home.css, for the blog-styled pages */
.trust .hero-ctas, .article-cta .hero-ctas{display:flex; flex-wrap:wrap; gap:12px;}
.trust .adv-icon{display:flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:14px; background:linear-gradient(135deg, var(--accent), var(--purple)); color:#fff; box-shadow:0 14px 30px -10px rgba(255,0,0,.65);}
.trust .adv-icon .icon{width:22px; height:22px;}
.trust-facts, .trust-cards{padding-top:0;}
.archive-intro{max-width:760px; margin:14px auto 0; line-height:1.75;}
.archive-intro a, .legal-summary a{color:var(--accent2);}
.legal-summary{padding-top:40px;}
.legal-summary h2{margin-top:0;}

/* ---------- IPTV Subscription page ---------- */
.sub-hero-visual img{display:block; width:100%; height:auto; filter:drop-shadow(0 40px 60px rgba(0,0,0,.6));}
.sub-hero-visual .qc-float-live{top:4%; left:4%;}
.sub-table-wrap{max-width:980px; margin:0 auto; border-radius:var(--p-radius); border:1px solid rgba(255,255,255,.1); background:linear-gradient(180deg, rgba(24,30,68,.8), rgba(13,17,42,.9)); overflow:hidden;}
.sub-table{width:100%; border-collapse:collapse;}
.sub-table th, .sub-table td{padding:18px; text-align:center; border-bottom:1px solid rgba(255,255,255,.07);}
.sub-table thead th{font:600 14px "Sora","Inter",sans-serif; color:rgba(248,250,252,.75); background:rgba(255,255,255,.03);}
.sub-table thead th:first-child, .sub-table tbody th{text-align:left;}
.sub-table tbody th{font:600 16px "Sora","Inter",sans-serif; color:#fff; white-space:nowrap;}
.sub-table td strong{display:block; font:800 22px "Sora","Inter",sans-serif; color:#fff; letter-spacing:-.01em;}
.sub-table td span{display:block; margin-top:2px; font-size:13px; color:rgba(248,250,252,.6);}
.sub-table tbody tr:last-child th, .sub-table tbody tr:last-child td{border-bottom:0;}
.sub-table tr.sub-popular th, .sub-table tr.sub-popular td{background:linear-gradient(180deg, rgba(255,0,0,.16), rgba(255,0,0,.06));}
.sub-table tr.sub-popular td strong{color:#fff;}
.sub-badge{display:inline-block; margin-left:8px; padding:3px 10px; border-radius:999px; font:700 11px "Inter",sans-serif; letter-spacing:.06em; text-transform:uppercase; color:#fff; background:linear-gradient(90deg, var(--accent), var(--purple)); vertical-align:2px;}
@media (max-width:767px){
  .sub-table thead{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
  .sub-table, .sub-table tbody, .sub-table tr, .sub-table th, .sub-table td{display:block; width:100%;}
  .sub-table tbody tr{display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:16px; border-bottom:1px solid rgba(255,255,255,.08);}
  .sub-table tbody th{grid-column:1 / -1; padding:0 0 4px; border:0;}
  .sub-table td{padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:12px; text-align:left; background:rgba(255,255,255,.03);}
  .sub-table td::before{content:attr(data-label); display:block; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--accent2); margin-bottom:4px;}
  .sub-table td strong{font-size:20px;}
  .sub-table tr.sub-popular td{background:rgba(255,0,0,.1);}
  .sub-table tr.sub-popular th{background:none;}
}
.sub-choose{display:grid; grid-template-columns:1fr; gap:18px;}
@media (min-width:640px){ .sub-choose{grid-template-columns:1fr 1fr;} }
@media (min-width:1100px){ .sub-choose{grid-template-columns:repeat(4,1fr);} }
.sub-length{position:relative;}
.sub-length h3{margin:12px 0 4px;}
.sub-length-tag{display:inline-block; padding:4px 12px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.04em; color:var(--accent2); background:rgba(255,0,0,.1); border:1px solid rgba(255,90,90,.3);}
.sub-length-price{font:800 26px "Sora","Inter",sans-serif; color:#fff; margin:4px 0 10px !important;}
.sub-length-price span{font:500 14px "Inter",sans-serif; color:rgba(248,250,252,.6);}
.sub-length-popular{border-color:rgba(255,90,90,.55) !important; box-shadow:0 0 0 1px rgba(255,90,90,.25), 0 30px 60px -28px rgba(255,0,0,.5);}
.sub-length-popular .sub-length-tag{color:#fff; background:linear-gradient(90deg, var(--accent), var(--purple)); border-color:transparent;}
.sub-screens{margin-top:56px;}
.sub-screens .qc-checks li span{font-weight:400;}
@media (min-width:1024px){ .sub-steps{grid-template-columns:repeat(4,1fr) !important;} }
@media (min-width:900px) and (max-width:1023px){ .sub-steps{grid-template-columns:repeat(2,1fr) !important;} }
.plans-more{margin:18px auto 0; text-align:center; font-size:15px;}
.plans-more a{color:var(--accent2); font-weight:600;}
