/* IPTV Polska Theme — main styles */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #050505;
  --color-bg-dark: #0a0a0a;
  --color-bg-card: #121212;
  --color-bg-card-hover: #1c1c1c;
  --color-red: #C8102E;
  --color-red-dark: #9e0c24;
  --color-red-light: #e63950;
  --color-red-glow: rgba(200, 16, 46, 0.4);
  --color-white: #ffffff;
  --color-gray: #e8e8e8;
  --color-gray-dark: #a0a0a0;
  --color-border: rgba(255, 255, 255, 0.1);
  --gradient-hero: linear-gradient(135deg, #050505 0%, #1a0008 42%, #0d0d0d 100%);
  --gradient-card: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 20px 50px rgba(200, 16, 46, 0.22);
  --font-main: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1180px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-red-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-red);
}

/* Buttons — always white text (Poland red + white) */
a.btn,
a.btn:visited,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none;
}

a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
.btn-primary {
  background: var(--color-red);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  border: 2px solid var(--color-red);
}

a.btn-primary:hover,
.btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--color-red-glow);
}

a.btn-outline,
a.btn-outline:visited,
.btn-outline {
  background: transparent;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  border: 2px solid var(--color-red);
}

a.btn-outline:hover,
a.btn-outline:focus,
a.btn-outline:active,
.btn-outline:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--color-red-glow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-gray);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-alt {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg) 100%);
}

.text-center { text-align: center; }
.text-red { color: var(--color-red); }
.text-white { color: var(--color-white); }

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  line-height: 1.35;
}

/* Legacy selectors kept for non-link buttons */
.btn-primary {
  background: var(--color-red);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-red-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--color-red);
}

.btn-outline:hover {
  background: var(--color-red);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2.8rem; font-size: 1.1rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: rgba(224, 17, 58, 0.45);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.badge {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-red);
  padding: 0.8rem 0;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.navbar-scrolled {
  background: rgba(0, 0, 0, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-logo,
.custom-logo-link {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
}

.logo-iptv,
.logo-brand-polska { color: var(--color-white); }
.logo-polska,
.logo-brand-telewizja { color: var(--color-red); }

.logo-brand-polska,
.logo-brand-telewizja {
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-gray);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--color-white);
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  color: #ffffff !important;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

main {
  margin-top: 70px;
}

/* Direct PHP homepage sections (no Elementor wrapper) */
body.iptv-php-layout main > .hero,
body.iptv-php-layout main > .section,
body.iptv-php-layout main > .section-alt,
body.iptv-php-layout main > .trust-bar,
body.iptv-php-layout main > .pricing-section,
body.iptv-php-layout main > .faq-section {
  width: 100%;
}

body.iptv-php-layout main {
  overflow-x: hidden;
}

body.iptv-elementor-shortcodes .hero,
body.iptv-elementor-shortcodes .section,
body.iptv-elementor-shortcodes .section-alt {
  width: 100%;
}

body.iptv-elementor-shortcodes main {
  overflow-x: hidden;
}

body.iptv-elementor-shortcodes .section-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

body.iptv-elementor-shortcodes .pricing-popular {
  transform: scale(1.03);
  border: 2px solid var(--color-red) !important;
}

@media (max-width: 991px) {
  body.iptv-elementor-shortcodes .pricing-popular {
    transform: none;
  }
}

/* Hero */
.iptv-hero-elementor-wrap {
  position: relative;
  z-index: 1;
}

.iptv-hero-elementor-wrap .elementor-section.iptv-el-hero {
  overflow: hidden;
}

.hero,
.iptv-hero-elementor-wrap .iptv-el-hero {
  position: relative;
  padding: 7rem 0 5.5rem;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(220, 20, 60, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.iptv-accent {
  background: linear-gradient(135deg, #ffffff, #C8102E, #e63950);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero-stats .iptv-stat-card {
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.hero-stats .iptv-stat-card:hover {
  border-color: rgba(220, 20, 60, 0.35);
  box-shadow: 0 8px 32px rgba(220, 20, 60, 0.12);
}

.hero-stats .iptv-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1.1;
}

.hero-stats .iptv-stat-lbl {
  display: block;
  font-size: 0.82rem;
  color: var(--color-gray-dark);
  margin-top: 0.2rem;
}

.hero-bg-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.15) translate(-20px, 10px); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
  animation: heroImageFloat 6s ease-in-out infinite alternate;
}

.hero-image-glow {
  position: absolute;
  inset: 10% 5% -5%;
  background: radial-gradient(ellipse at center, rgba(200, 16, 46, 0.35), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@keyframes heroImageFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.hero h1 {
  margin: 1.5rem 0 0.5rem;
  font-size: 3.2rem;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-gray);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.hero h1 + .hero-subtitle,
.hero-tagline + .hero-subtitle {
  margin-top: 0;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-buttons-center {
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-red);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-gray-dark);
}

.section-desc {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.card-icon,
.device-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.devices-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.devices-grid {
  align-items: stretch;
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.device-card:hover {
  border-color: rgba(220, 20, 60, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(220, 20, 60, 0.15);
}

.device-card .device-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.2) 0%, rgba(220, 20, 60, 0.08) 100%);
  border: 1px solid rgba(220, 20, 60, 0.25);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(220, 20, 60, 0.12);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.device-card:hover .device-icon {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(220, 20, 60, 0.22);
}

.device-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.device-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
  color: var(--color-gray);
}

/* Legal pages */
.iptv-legal-page,
.iptv-legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.iptv-legal-page h1 {
  margin-bottom: 0.5rem;
}

.iptv-legal-updated {
  color: var(--color-gray-dark);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.iptv-legal-body h2 {
  font-size: 1.15rem;
  color: var(--color-white);
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.iptv-legal-body h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.iptv-legal-body p,
.iptv-legal-body li {
  color: var(--color-gray);
  line-height: 1.75;
  font-size: 0.95rem;
}

.iptv-legal-body ul,
.iptv-legal-body ol {
  margin: 0.75rem 0 1rem 1.25rem;
}

.iptv-legal-body a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Pricing */
.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-popular {
  border-color: var(--color-red);
  box-shadow: 0 0 30px rgba(220, 20, 60, 0.2);
}

.pricing-popular .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.price-duration {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-red);
  margin: 1rem 0 0.5rem;
}

.price {
  margin: 0.5rem 0 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.35rem 0;
  color: var(--color-gray);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Main features */
.main-features-section {
  background: linear-gradient(180deg, #000, #0d0003, #000);
}

.main-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.main-feature-card {
  display: flex;
  gap: 1.2rem;
  padding: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.main-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-red);
  opacity: 0;
  transition: opacity var(--transition);
}

.main-feature-card:hover {
  border-color: var(--color-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(220, 20, 60, 0.12);
}

.main-feature-card:hover::before {
  opacity: 1;
}

.main-feature-icon {
  font-size: 2.4rem;
  min-width: 50px;
  padding-top: 0.2rem;
}

.main-feature-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.main-feature-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* CTA main */
.cta-main-section {
  background: linear-gradient(135deg, #0a0a0a, #1a0008 40%, #0d0003);
  position: relative;
  overflow: hidden;
}

.cta-main-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-main-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}

.cta-main-content .badge {
  margin-bottom: 1.5rem;
}

.cta-main-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.cta-main-content > p {
  font-size: 1.05rem;
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.cta-benefits {
  list-style: none;
  margin-bottom: 2rem;
}

.cta-benefits li {
  padding: 0.6rem 0;
  color: var(--color-gray);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-main-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-main-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.cta-stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: all var(--transition);
}

.cta-stat-card:hover {
  border-color: var(--color-red);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.1);
}

.cta-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-red);
  margin-bottom: 0.3rem;
}

.cta-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* Key features */
.features-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 50%, #0a0a0a 100%);
}

.features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(220, 20, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.features-section .container {
  position: relative;
  z-index: 1;
}

.features-grid {
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.65rem 1.5rem;
  border-radius: 14px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.85), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-body h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.feature-body p {
  margin: 0;
  color: var(--color-gray);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Blog */
.blog-home-section {
  background: linear-gradient(180deg, #0a0a0a, #0d0003, #0a0a0a);
}

.blog-home-card {
  text-decoration: none;
  color: inherit;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-home-card:hover {
  color: inherit;
}

.blog-home-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--transition);
}

.blog-home-img-placeholder {
  background: linear-gradient(135deg, #1a0008, #DC143C);
}

.blog-home-card:hover .blog-home-img {
  transform: scale(1.05);
}

.blog-home-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-home-tag {
  display: inline-block;
  background: rgba(220, 20, 60, 0.15);
  color: var(--color-red);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  width: fit-content;
}

.blog-home-body h3,
.blog-home-body .blog-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.blog-home-body p {
  font-size: 0.9rem;
  flex-grow: 1;
  color: var(--color-gray);
}

.blog-home-read {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.8rem;
  transition: color var(--transition);
}

.blog-home-card:hover .blog-home-read {
  color: var(--color-red-light);
}

.blog-home-more {
  margin-top: 2.5rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-bg-card);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-red);
  transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  background: var(--color-bg-card-hover);
}

.faq-answer {
  padding: 1rem 1.5rem 1.5rem;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
}

.faq-answer p {
  margin-bottom: 0;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #0a0a0a, #1a0008, #0a0a0a);
}

/* Footer */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-col h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a,
.footer-col p a {
  color: var(--color-gray-dark);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover,
.footer-col p a:hover {
  color: var(--color-red);
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--color-gray-dark);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-gray-dark);
}

.footer-bottom a {
  color: var(--color-gray-dark);
}

.footer-bottom a:hover {
  color: var(--color-red);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 1.2rem 1.5rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-text p {
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-text p:first-child {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cookie-text a {
  color: var(--color-red);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--color-red);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #ff1744;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--color-gray);
  border: 1px solid var(--color-border);
}

.cookie-btn-reject:hover {
  color: var(--color-white);
  border-color: var(--color-gray);
}

/* Elementor */
.iptv-elementor-content .elementor-widget-html {
  width: 100%;
}

.iptv-elementor-content .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100%;
}

.elementor-editor-active .elementor-widget-html section {
  pointer-events: none;
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-gray);
  font-size: 0.95rem;
}

.contact-list li strong {
  color: var(--color-white);
  display: inline-block;
  min-width: 90px;
}

.contact-form-placeholder {
  padding: 2rem;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  text-align: center;
}

/* Contact form */
.contact-form-card {
  padding: 1.75rem;
}

.iptv-contact-form {
  margin-top: 0.5rem;
}

.iptv-form-row {
  margin-bottom: 1rem;
}

.iptv-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.iptv-form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
}

.iptv-form-field .required {
  color: var(--color-red);
}

.iptv-contact-form input[type="text"],
.iptv-contact-form input[type="email"],
.iptv-contact-form input[type="tel"],
.iptv-contact-form select,
.iptv-contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.iptv-contact-form input::placeholder,
.iptv-contact-form textarea::placeholder {
  color: var(--color-gray-dark);
}

.iptv-contact-form input:focus,
.iptv-contact-form select:focus,
.iptv-contact-form textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2);
}

.iptv-contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0a0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.iptv-contact-form select option {
  background: #121212;
  color: #fff;
}

.iptv-contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.iptv-form-actions {
  margin-top: 1.25rem;
}

.iptv-form-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--color-gray-dark);
  text-align: center;
}

.iptv-contact-form.is-submitting .iptv-form-submit {
  opacity: 0.7;
  pointer-events: none;
}

.iptv-contact-success {
  text-align: center;
  padding: 2rem 1rem;
}

.iptv-contact-success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.2);
  border: 2px solid var(--color-red);
  color: var(--color-red);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 3.5rem;
}

.iptv-contact-success h3 {
  margin-bottom: 0.75rem;
}

.iptv-contact-success p {
  margin-bottom: 1.25rem;
}

.iptv-contact-success .btn {
  margin: 0.35rem;
}

@media (max-width: 768px) {
  .iptv-form-row-2 {
    grid-template-columns: 1fr;
  }
}

.text-gray {
  color: var(--color-gray-dark);
}

.iptv-page-content {
  padding: 2rem 0;
}

.iptv-page-content > .container,
.iptv-page-content .section,
.iptv-page-content .section-alt {
  margin-left: auto;
  margin-right: auto;
}

.page-header-section {
  min-height: 40vh;
}

.page-content h1,
.single-post h1 {
  margin-bottom: 1.5rem;
}

.entry-content {
  color: var(--color-gray);
  max-width: 800px;
}

.entry-content h2,
.entry-content h3 {
  color: var(--color-white);
  margin-top: 2rem;
}

.entry-content a {
  text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--color-gray);
}

.single-post-thumb {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.single-post-thumb img {
  width: 100%;
}

.single-post-hero {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.single-post-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.single-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.single-post-section {
  padding-top: 2.5rem;
}

.single-post-section .single-post-header {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .single-post-hero-img {
    height: 240px;
  }

  .single-post-hero {
    max-height: 240px;
  }
}

.post-meta {
  font-size: 0.9rem;
  color: var(--color-gray-dark);
  margin-bottom: 2rem;
}

.pagination {
  margin-top: 3rem;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  gap: 0.5rem;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-gray);
}

.pagination .current {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .main-features-grid,
  .cta-main-wrapper { grid-template-columns: 1fr; }
  .cta-main-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section,
  .section-alt { padding: 3rem 0; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .main-feature-card {
    flex-direction: column;
    gap: 0.8rem;
  }
  .cta-main-stats { grid-template-columns: 1fr 1fr; }
  .cta-main-content h2 { font-size: 1.6rem; }
}

/* Trust bar (legacy list variant) */
.trust-bar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-bar-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  background: rgba(220, 20, 60, 0.08);
  border: 1px solid rgba(220, 20, 60, 0.15);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  transition: all 0.3s ease;
}

.trust-bar-list li:hover {
  background: rgba(220, 20, 60, 0.14);
  border-color: rgba(220, 20, 60, 0.35);
  color: var(--color-white);
}

.trust-icon {
  font-size: 1.1rem;
}

/* Skip link */
.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 100000;
}

.skip-link.screen-reader-text:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  clip: auto;
}

/* Breadcrumbs */
.iptv-breadcrumbs {
  margin-bottom: 1.5rem;
}

.iptv-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.iptv-breadcrumbs-list li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--color-gray-dark);
}

.iptv-breadcrumbs-list a {
  color: var(--color-gray);
}

.iptv-breadcrumbs-list a:hover {
  color: var(--color-red);
}

.iptv-breadcrumbs-list li:last-child {
  color: var(--color-white);
}

.post-meta-sep {
  margin: 0 0.4rem;
  color: var(--color-gray-dark);
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section heading accent */
.section h2,
.text-center h2 {
  position: relative;
}

.section h2::after,
.page-header-section h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-red);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.page-header-section h1::after {
  margin-left: 0;
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

.pricing-popular {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .trust-bar-list {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .pricing-popular {
    transform: none;
  }
}

/* === v1.9 Premium overhaul === */

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.section-title-left::after {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.hero-badge {
  box-shadow: 0 0 24px var(--color-red-glow);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  letter-spacing: -0.03em;
}

.iptv-icon {
  display: block;
  color: var(--color-red-light);
}

.icon-box,
.trust-icon-wrap,
.device-icon,
.main-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(224, 17, 58, 0.22), rgba(224, 17, 58, 0.06));
  border: 1px solid rgba(224, 17, 58, 0.28);
  box-shadow: 0 8px 28px rgba(224, 17, 58, 0.15);
}

.main-feature-icon {
  margin: 0;
  min-width: 64px;
  flex-shrink: 0;
}

.device-icon {
  width: 72px;
  height: 72px;
  font-size: unset;
}

/* Trust bar */
.trust-bar {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(180deg, rgba(220, 20, 60, 0.07) 0%, transparent 55%);
  border-bottom: 1px solid var(--color-border);
}

.trust-bar-header {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.trust-bar-lead {
  margin: 0.75rem auto 0;
  color: var(--color-gray);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 640px;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 1.5rem 1.25rem;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.trust-item:hover {
  border-color: rgba(224, 17, 58, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(224, 17, 58, 0.12);
}

.trust-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 14px;
  flex-shrink: 0;
}

.trust-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trust-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.35;
  margin: 0;
}

.trust-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-gray);
}

.why-us-section {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(224, 17, 58, 0.06), transparent 70%);
}

.why-card {
  padding: 2.25rem 1.75rem;
}

.why-card .icon-box {
  margin-bottom: 1.5rem;
}

.pricing-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #120008 50%, #0a0a0a 100%);
}

.pricing-card {
  padding: 2rem 1.5rem 1.75rem;
  text-align: left;
}

.pricing-card h3 {
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.price-duration,
.price {
  text-align: center;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.pricing-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.pricing-check-icon {
  width: 14px;
  height: 14px;
  color: var(--color-red);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.pricing-popular {
  background: linear-gradient(160deg, rgba(224, 17, 58, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(224, 17, 58, 0.55);
  box-shadow: 0 0 40px rgba(224, 17, 58, 0.2), var(--shadow-card);
}

.feature-item {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.75rem;
}

.feature-item:hover {
  border-color: rgba(224, 17, 58, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(224, 17, 58, 0.1);
  transform: translateY(-4px);
}

.feature-item:hover::before {
  opacity: 1;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 0.65rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-white);
  opacity: 1;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(224, 17, 58, 0.35), rgba(224, 17, 58, 0.12));
  border: 1px solid rgba(224, 17, 58, 0.35);
  box-shadow: 0 8px 24px rgba(224, 17, 58, 0.15);
}

.main-feature-card {
  background: var(--gradient-card);
  border-color: var(--color-border);
}

.cta-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.final-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d, #1a0010 50%, #0d0d0d);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(224, 17, 58, 0.15), transparent 55%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
}

/* Poland white + red — headings & pricing buttons */
.section-title,
.section h2,
.hero h1,
.hero-tagline {
  color: var(--color-white);
}

.section-title .text-red,
.text-red {
  color: var(--color-red) !important;
}

.pricing-card .btn,
.pricing-card a.btn {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pricing-popular .btn-primary {
  box-shadow: 0 4px 20px var(--color-red-glow);
}

.trust-label,
.device-card h3,
.why-card h3 {
  color: #ffffff;
}

.section-kicker {
  color: var(--color-red);
  font-weight: 700;
}

.logo-polska {
  color: var(--color-red) !important;
}

.logo-iptv {
  color: #ffffff !important;
}

.faq-item {
  border-radius: 12px;
  border-color: var(--color-border);
  background: var(--gradient-card);
}

.faq-question {
  background: transparent;
}

.footer {
  background: #030303;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 992px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trust-bar-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    justify-content: flex-start;
  }
}

/* ── Premium PHP layout polish ─────────────────────────── */

body.iptv-php-layout {
  background: var(--color-bg);
}

body.iptv-php-layout .section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.75rem;
}

body.iptv-php-layout .section-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  color: var(--color-gray-dark);
  font-size: 1.05rem;
}

body.iptv-php-layout .section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.iptv-php-layout .card {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

body.iptv-php-layout .card:hover {
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: var(--shadow-card-hover);
}

body.iptv-php-layout .hero {
  padding: 5.5rem 0 4.5rem;
  min-height: auto;
}

body.iptv-php-layout .pricing-popular {
  transform: scale(1.03);
  border: 2px solid var(--color-red) !important;
  z-index: 2;
}

body.iptv-php-layout .blog-home-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

body.iptv-php-layout .blog-home-card:hover {
  transform: translateY(-6px);
}

/* Hide third-party cookie banners (theme has its own) */
.cky-consent-container,
.cky-overlay,
.cky-modal,
#cookie-law-info-bar,
#cookie-law-info-again,
.moove_gdpr_cookie_info_bar,
#moove_gdpr_cookie_modal,
#cookie-notice,
.cn-bottom,
#wpadminbar ~ .cky-consent-container,
div[class*="cookieyes"],
div[id*="cookieyes"],
#cmplz-cookiebanner-container,
.cmplz-cookiebanner {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.iptv-php-layout .cookie-banner:not(.hidden) {
  display: block;
  visibility: visible;
  pointer-events: auto;
}

/* ── Installation guide (Instrukcja) ───────────────────── */

.install-guide-section {
  padding-top: 3rem;
}

.install-guide-header {
  margin-bottom: 3rem;
}

.install-guide-header h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.install-step-card {
  padding: 1.75rem;
  position: relative;
  border: 1px solid var(--color-border);
}

.install-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.install-step-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.install-step-card p {
  font-size: 0.95rem;
  margin: 0;
}

.install-app-block {
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

.install-app-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.install-app-lead {
  color: var(--color-gray-dark);
  margin-bottom: 1.25rem;
}

.install-app-steps {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--color-gray);
}

.install-app-steps li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.install-app-steps li strong {
  color: var(--color-white);
}

.install-apps-tags {
  padding: 1.75rem;
  margin-bottom: 3rem;
  border: 1px solid var(--color-border);
}

.install-apps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.install-app-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.35);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
}

.install-apps-note {
  margin: 0;
  font-size: 0.95rem;
}

.install-apps-note a {
  color: var(--color-red-light);
  font-weight: 600;
}

.install-faq-wrap {
  margin-bottom: 2.5rem;
}

.install-faq-wrap .section-title {
  margin-bottom: 1.5rem;
}

.install-guide-cta {
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .install-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* === Mobile responsive v1.15 === */

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-width: 0;
}

img,
svg,
video,
.hero-image {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  padding-left: clamp(0.875rem, 4vw, 1.5rem);
  padding-right: clamp(0.875rem, 4vw, 1.5rem);
}

body.iptv-php-layout .reveal-on-scroll,
body.iptv-php-layout .section,
body.iptv-php-layout .section-alt,
body.iptv-php-layout .trust-bar {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
    max-width: min(360px, 92vw);
    margin: 0 auto;
  }

  .hero-subtitle {
    max-width: none;
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero {
    padding: 4.5rem 0 3rem;
  }

  .pricing-grid.grid-4,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  body.iptv-php-layout .pricing-popular,
  .pricing-popular {
    transform: none;
  }

  .main-features-grid {
    grid-template-columns: 1fr;
  }

  .cta-main-wrapper {
    grid-template-columns: 1fr;
  }

  .cta-main-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid.grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-grid .hero-buttons {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  main {
    margin-top: 64px;
  }

  .navbar {
    padding: 0.65rem 0;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-cta {
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links,
  .nav-links:not(.active) {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0.25rem;
    z-index: 1001;
  }

  .nav-links.active a {
    display: block;
    padding: 0.65rem 0;
    width: 100%;
  }

  .section,
  .section-alt {
    padding: clamp(2.5rem, 8vw, 3.5rem) 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .pricing-grid.grid-4 {
    grid-template-columns: 1fr;
  }

  .trust-bar-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 0.85rem 1rem;
  }

  .card {
    padding: 1.35rem;
  }

  .pricing-features li {
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .blog-home-grid {
    grid-template-columns: 1fr;
  }

  .devices-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .main-feature-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
  }

  .cta-main-stats {
    grid-template-columns: 1fr 1fr;
  }

  .final-cta-inner .hero-buttons {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .nav-cta {
    display: none;
  }

  .cta-main-stats {
    grid-template-columns: 1fr;
  }
}
