/**
 * IPTV App page – iptv-app.php only
 */
:root {
  --app-navy: #071a42;
  --app-blue: #0b2b6f;
  --app-accent: #0062ff;
  --app-primary: #ffb302;
  --app-primary-dark: #e6a000;
  --app-muted: #5c6370;
  --app-radius: 16px;
  --app-shadow: 0 12px 40px rgba(11, 43, 111, 0.1);
}

.page-app main {
  overflow-x: hidden;
}

/* ── Hero ── */
.app-hero {
  position: relative;
  padding-block: var(--section-y);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 90% 60% at 75% 18%, rgba(95, 145, 255, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 12% 105%, rgba(255, 179, 2, 0.12) 0%, transparent 55%),
    linear-gradient(
      170deg,
      var(--brand-navy-deep, #050f28) 0%,
      var(--brand-navy, #071a42) 38%,
      #03102c 100%
    );
}

.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 85% 30%, rgba(255, 179, 2, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7, 26, 66, 0.15) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.app-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 55%, rgba(2, 6, 22, 0.55) 100%);
}

.app-hero .pg-breadcrumb {
  padding: 0 0 18px;
  position: relative;
  z-index: 2;
}

.app-hero .pg-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

.app-hero .pg-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.65);
}

.app-hero .pg-breadcrumb li:not(:last-child)::after {
  content: "›";
  opacity: 0.55;
  font-size: 14px;
}

.app-hero .pg-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
}

.app-hero .pg-breadcrumb a:hover {
  color: var(--brand-accent, var(--app-primary));
}

.app-hero .pg-breadcrumb li[aria-current="page"] {
  color: var(--brand-accent, var(--app-primary));
  font-weight: 600;
}

.app-hero .container {
  position: relative;
  z-index: 1;
}

.app-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd87a;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 179, 2, 0.18) 0%, rgba(255, 179, 2, 0.06) 100%);
  border: 1px solid rgba(255, 179, 2, 0.34);
  margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(255, 179, 2, 0.1);
}

.app-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent, var(--app-primary));
  box-shadow: 0 0 12px rgba(255, 179, 2, 0.7);
  flex-shrink: 0;
}

.app-hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 16px;
  max-width: 580px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.app-hero__lead {
  font-size: clamp(0.98rem, 1.7vw, 1.06rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  max-width: 540px;
  margin-bottom: 22px;
}

.app-hero__pills {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.app-hero__pills li,
.app-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-hero__pills li:hover,
.app-hero__pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 179, 2, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.app-hero__pills li i,
.app-hero__pill i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 179, 2, 0.18);
  color: var(--brand-accent, var(--app-primary));
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-hero__pills li:hover i,
.app-hero__pill:hover i {
  background: rgba(255, 179, 2, 0.28);
  color: #ffd87a;
}

.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
  border: 2px solid transparent;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.app-btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.app-btn:active {
  transform: translateY(-1px);
}

.app-btn--lg {
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  min-height: 52px;
}

.app-btn--primary {
  background: linear-gradient(135deg, #ffd055 0%, var(--brand-accent, var(--app-primary)) 55%, #f5a800 100%);
  color: var(--brand-navy, var(--app-navy));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 12px 32px rgba(255, 179, 2, 0.42),
    0 2px 6px rgba(255, 179, 2, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.app-btn--primary:hover {
  background: linear-gradient(135deg, #ffe084 0%, #ffc233 55%, var(--brand-accent, var(--app-primary)) 100%);
  color: var(--brand-navy, var(--app-navy));
  box-shadow:
    0 16px 36px rgba(255, 179, 2, 0.5),
    0 4px 10px rgba(255, 179, 2, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.app-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.app-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.app-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.app-btn--whatsapp:hover {
  background: #1fb855;
  color: #fff;
}

.app-hero__img-wrap {
  position: relative;
}

.app-hero__img-wrap::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(circle, rgba(255, 179, 2, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.app-hero__img-frame {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--app-radius) + 2px);
  overflow: hidden;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-hero__img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(7, 26, 66, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.app-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: brightness(1.05) contrast(1.03);
}

/* ── Section heads (uses global .section / .section--alt from main.css) ── */
.app-section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 44px);
}

.app-section__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--app-blue);
  margin-bottom: 10px;
}

.app-section__head h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--app-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.app-section__head p {
  color: var(--app-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ── App recommendation cards ── */
.app-rec__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}

@media (min-width: 768px) {
  .app-rec__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .app-rec__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.app-rec-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--app-radius) + 2px);
  padding: 20px 18px 18px;
  width: 100%;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(11, 43, 111, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 179, 2, 0.14);
  border-color: rgba(255, 179, 2, 0.42);
}

.app-rec-card--highlight {
  border-color: rgba(255, 179, 2, 0.35);
  box-shadow: 0 12px 36px rgba(255, 179, 2, 0.12);
}

.app-rec-card--highlight:hover {
  border-color: rgba(255, 179, 2, 0.55);
}

.app-rec-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  min-height: 26px;
}

.app-rec-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1.2;
}

.app-rec-card__badge--free {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.app-rec-card__badge--paid {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.app-rec-card__badge--rec-free {
  background: linear-gradient(135deg, rgba(255, 179, 2, 0.22) 0%, rgba(34, 197, 94, 0.14) 100%);
  color: #92400e;
  border: 1px solid rgba(255, 179, 2, 0.35);
}

.app-rec-card__badge--rec-paid {
  background: linear-gradient(135deg, rgba(255, 179, 2, 0.22) 0%, rgba(249, 115, 22, 0.14) 100%);
  color: #92400e;
  border: 1px solid rgba(255, 179, 2, 0.35);
}

.app-rec-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.app-rec-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 43, 111, 0.08) 0%, rgba(255, 179, 2, 0.1) 100%);
  color: var(--brand-navy, var(--app-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.app-rec-card__icon i {
  line-height: 1;
}

.app-rec-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--app-navy);
  margin: 0;
  line-height: 1.3;
}

.app-rec-card__meta {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  flex: 1;
}

.app-rec-card__spec {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(11, 43, 111, 0.06);
}

.app-rec-card__spec:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.app-rec-card__spec dt {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.app-rec-card__spec dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--app-navy);
}

.app-rec-card__spec--ease dd {
  font-weight: 400;
}

.app-rec-card__ease {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.app-rec-card__star {
  color: rgba(11, 43, 111, 0.2);
  flex-shrink: 0;
}

.app-rec-card__star--on {
  color: var(--brand-accent, var(--app-primary));
}

.app-rec-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: auto;
  padding: 8px 0;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-accent, var(--app-primary));
  background: none;
  border: none;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, gap 0.2s ease;
}

.app-rec-card__link:hover {
  color: var(--brand-accent-hover, var(--app-primary-dark));
  text-decoration: none;
  transform: translateX(4px);
}

.app-rec-card__link-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.app-rec-card__link:hover .app-rec-card__link-arrow {
  transform: translateX(2px);
}

.app-rec-card__link:focus-visible {
  outline: 2px solid var(--brand-accent, var(--app-primary));
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Comparison table ── */
.app-compare__table-wrap {
  border-radius: calc(var(--app-radius) + 2px);
  border: 1px solid #e8ecf4;
  box-shadow: var(--app-shadow);
  background: #fff;
  overflow: hidden;
}

.app-compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.app-compare__table th,
.app-compare__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eef1f7;
  vertical-align: middle;
}

.app-compare__table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f8f9fc 0%, #eef1f8 100%);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--app-navy);
  box-shadow: 0 1px 0 #e8ecf4;
}

.app-compare__table tbody tr:nth-child(even):not(.is-recommended) {
  background: rgba(11, 43, 111, 0.025);
}

.app-compare__table tbody tr:last-child td {
  border-bottom: none;
}

.app-compare__table tbody tr:hover {
  background: rgba(11, 43, 111, 0.04);
}

.app-compare__table tbody tr.is-recommended:hover {
  background: rgba(255, 179, 2, 0.1);
}

.app-compare__table tr.is-recommended {
  background: rgba(255, 179, 2, 0.08);
}

.app-compare__app-cell {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.app-compare__app-name {
  font-weight: 700;
  color: var(--app-navy);
}

.app-compare__table tr.is-recommended .app-compare__app-name {
  color: var(--app-navy);
}

.app-compare__bool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.app-compare__bool--yes {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.app-compare__bool--no {
  background: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

.app-compare__pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.app-compare__pill--free {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.app-compare__pill--paid {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.app-compare__pill--easy {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.app-compare__pill--moderate {
  background: rgba(11, 43, 111, 0.06);
  color: var(--app-navy);
  border: 1px solid rgba(11, 43, 111, 0.1);
}

.app-compare__pill--default {
  background: rgba(11, 43, 111, 0.06);
  color: var(--app-navy);
  border: 1px solid rgba(11, 43, 111, 0.1);
}

.app-compare__tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 179, 2, 0.18);
  color: #92400e;
  border: 1px solid rgba(255, 179, 2, 0.32);
  white-space: nowrap;
}

/* Mobile compare cards */
.app-compare__cards {
  display: none;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.5vw, 16px);
}

.app-compare-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--app-radius) + 2px);
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(11, 43, 111, 0.06);
}

.app-compare-card.is-recommended {
  border-color: rgba(255, 179, 2, 0.38);
  background: linear-gradient(165deg, rgba(255, 179, 2, 0.07) 0%, #fff 100%);
  box-shadow: 0 10px 28px rgba(255, 179, 2, 0.1);
}

.app-compare-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 43, 111, 0.08);
}

.app-compare-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--app-navy);
  margin: 0;
  line-height: 1.3;
}

.app-compare-card__meta {
  display: grid;
  gap: 0;
  margin: 0;
}

.app-compare-card__row {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 43, 111, 0.06);
}

.app-compare-card__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.app-compare-card__row dt {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.app-compare-card__row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-navy);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  text-align: right;
}

@media (max-width: 767.98px) {
  .app-compare__table-wrap {
    display: none;
  }

  .app-compare__cards {
    display: grid;
  }
}

/* ── Device finder ── */
.app-device {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.app-device__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 16px);
}

@media (max-width: 767.98px) {
  .app-device__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app-device-card {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  width: 100%;
  min-height: 88px;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--app-radius) + 2px);
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.app-device-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 43, 111, 0.1);
  border-color: rgba(255, 179, 2, 0.28);
}

.app-device-card:focus-visible {
  outline: 2px solid var(--brand-accent, var(--app-primary));
  outline-offset: 3px;
}

.app-device-card.is-selected {
  border-color: rgba(255, 179, 2, 0.48);
  background: linear-gradient(165deg, rgba(255, 179, 2, 0.1) 0%, #fff 100%);
  box-shadow: 0 12px 32px rgba(255, 179, 2, 0.14);
}

.app-device-card.is-selected:hover {
  border-color: rgba(255, 179, 2, 0.55);
}

.app-device-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 43, 111, 0.07) 0%, rgba(255, 179, 2, 0.1) 100%);
  color: var(--brand-navy, var(--app-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-device-card.is-selected .app-device-card__icon {
  background: rgba(255, 179, 2, 0.18);
  color: var(--brand-accent, var(--app-primary));
}

.app-device-card__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--app-navy);
  line-height: 1.35;
}

.app-device__result {
  padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 28px);
  border-radius: calc(var(--app-radius) + 2px);
  border: 1px solid rgba(255, 179, 2, 0.28);
  background: linear-gradient(165deg, rgba(255, 179, 2, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow: 0 10px 32px rgba(255, 179, 2, 0.1);
  text-align: center;
}

.app-device__result-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent, var(--app-primary));
}

.app-device__result-lead {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--app-muted);
}

.app-device__result-device {
  color: var(--app-navy);
  font-weight: 800;
}

.app-device__result-apps {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand-navy, var(--app-navy));
}

/* ── Setup tabs ── */
.app-tabs {
  max-width: 880px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.app-tabs__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 992px) {
  .app-tabs__nav {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

.app-tabs__btn {
  border: 1px solid #dce3ef;
  background: #fff;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 44px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-tabs__btn:hover {
  border-color: rgba(255, 179, 2, 0.45);
  color: var(--brand-navy, var(--app-navy));
}

.app-tabs__btn:focus-visible {
  outline: 2px solid var(--brand-accent, var(--app-primary));
  outline-offset: 2px;
}

.app-tabs__btn.is-active {
  background: linear-gradient(135deg, #ffd055 0%, var(--brand-accent, var(--app-primary)) 55%, #f5a800 100%);
  border-color: var(--brand-accent, var(--app-primary));
  color: var(--brand-navy, var(--app-navy));
  box-shadow: 0 6px 18px rgba(255, 179, 2, 0.28);
}

.app-tabs__panels {
  position: relative;
}

.app-tabs__panel {
  display: none;
  background: #fff;
  border-radius: calc(var(--app-radius) + 2px);
  border: 1px solid #e8ecf4;
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--app-shadow);
}

.app-tabs__panel.is-active {
  display: block;
  animation: appTabIn 0.24s ease forwards;
}

@keyframes appTabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-tabs__panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--app-navy);
  margin-bottom: 8px;
}

.app-tabs__rec {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-navy, var(--app-navy));
  background: rgba(255, 179, 2, 0.12);
  border: 1px solid rgba(255, 179, 2, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.app-tabs__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.app-tabs__step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0 0 16px;
}

.app-tabs__step:last-child {
  padding-bottom: 0;
}

.app-tabs__step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd055 0%, var(--brand-accent, var(--app-primary)) 100%);
  color: var(--brand-navy, var(--app-navy));
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(255, 179, 2, 0.25);
}

.app-tabs__step-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--app-muted);
  padding-top: 4px;
}

.app-tabs__callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-2, #f4f6fb);
  border: 1px solid var(--border, #e8ecf4);
  border-left: 4px solid var(--brand-accent, var(--app-primary));
}

.app-tabs__callout-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--brand-accent, var(--app-primary));
  background: rgba(255, 179, 2, 0.15);
}

.app-tabs__callout-body strong {
  display: block;
  margin-bottom: 6px;
  color: var(--app-navy);
  font-size: 13px;
}

.app-tabs__callout-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--app-muted);
}

.app-tabs__callout-body p:last-child {
  margin-bottom: 0;
}

.app-tabs__callout-note {
  font-size: 13px;
  color: var(--app-muted);
}

/* ── Help section ── */
.app-help {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--app-navy) 0%, var(--app-blue) 55%, #1a4a9e 100%);
  color: #fff;
  border-radius: calc(var(--app-radius) + 6px);
  padding: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 64px rgba(7, 26, 66, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-help::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, rgba(255, 179, 2, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.app-help > * {
  position: relative;
  z-index: 1;
}

.app-help__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-primary);
  background: rgba(255, 179, 2, 0.14);
  border: 1px solid rgba(255, 179, 2, 0.32);
}

.app-help h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.3;
}

.app-help p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
  max-width: 56ch;
}

.app-help__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.app-help__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.app-help__bullet {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--app-primary);
  background: rgba(255, 179, 2, 0.16);
  border: 1px solid rgba(255, 179, 2, 0.28);
}

.app-help__cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.app-help__cta .app-btn {
  min-width: 220px;
}

@media (max-width: 767.98px) {
  .app-help {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-help p {
    margin-inline: auto;
  }

  .app-help__list {
    max-width: 360px;
    margin-inline: auto;
    text-align: left;
  }

  .app-help__cta {
    align-items: stretch;
  }

  .app-help__cta .app-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ── SEO content (2-col sticky TOC) ── */
.app-seo-content h2,
.app-seo-content h3 {
  scroll-margin-top: 96px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  color: var(--app-navy);
  line-height: 1.35;
}

.app-seo-content h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  margin: clamp(32px, 4vw, 40px) 0 14px;
}

.app-seo-content__article h2:first-of-type {
  margin-top: 0;
}

.app-seo-content h3 {
  font-size: 1.1rem;
  margin: clamp(24px, 3vw, 32px) 0 12px;
}

.app-seo-content__heading-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--brand-accent, var(--app-primary));
  background: rgba(255, 179, 2, 0.18);
}

.app-seo-content__intro {
  max-width: 760px;
  margin: 0 auto clamp(24px, 4vw, 36px);
  text-align: center;
}

.app-seo-content__intro h2 {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.app-seo-content__intro p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--app-muted);
}

.app-seo-content__layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.app-seo-content__toc-col {
  position: relative;
}

.app-seo-content__article {
  min-width: 0;
}

@media (min-width: 992px) {
  .app-seo-content__article {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 16px;
    border: 1px solid var(--border, #e8ecf4);
    background: #fff;
    box-shadow: 0 4px 24px rgba(11, 43, 111, 0.05);
  }

  .app-seo-content__toc {
    top: calc(var(--site-header-main-h, 76px) + 20px);
  }
}

.app-seo-content__toc {
  position: sticky;
  top: calc(var(--site-header-main-h-mobile, 68px) + 16px);
  margin: 0;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--border, #e8ecf4);
  background: #fff;
  box-shadow: 0 2px 12px rgba(11, 43, 111, 0.04);
}

.app-seo-content__toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-blue);
  margin: 0 0 12px;
}

.app-seo-content__toc ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-seo-content__toc li {
  margin: 0;
  padding: 0;
}

.app-seo-content__toc a {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--app-navy);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.app-seo-content__toc a:hover,
.app-seo-content__toc a:focus-visible {
  color: var(--app-blue);
  background: rgba(11, 43, 111, 0.04);
}

.app-seo-content__toc a.is-active,
.app-seo-content__toc a[aria-current="true"] {
  color: var(--app-blue);
  background: rgba(255, 179, 2, 0.12);
  border-left-color: var(--brand-accent, var(--app-primary));
}

.app-seo-content__article a {
  color: var(--app-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(11, 43, 111, 0.22);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.app-seo-content__article a:hover,
.app-seo-content__article a:focus-visible {
  color: var(--app-navy);
  text-decoration-color: var(--brand-accent, var(--app-primary));
}

.app-seo-content__article p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--app-muted);
  margin-bottom: 14px;
  max-width: 70ch;
}

.app-seo-content__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  max-width: 70ch;
}

.app-seo-content__chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #e8ecf4);
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
  color: var(--app-muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-seo-content__chip:hover {
  border-color: rgba(255, 179, 2, 0.35);
  box-shadow: 0 4px 14px rgba(11, 43, 111, 0.06);
}

.app-seo-content__chip strong {
  font-size: 13px;
  color: var(--app-navy);
}

.app-seo-content__callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-2, #f4f6fb);
  border: 1px solid var(--border, #e8ecf4);
  border-left: 4px solid var(--brand-accent, var(--app-primary));
  max-width: 70ch;
}

.app-seo-content__callout-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--brand-accent, var(--app-primary));
  background: rgba(255, 179, 2, 0.15);
}

.app-seo-content__callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--app-navy);
}

.app-seo-content__callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--app-muted);
  max-width: none;
}

@media (max-width: 991.98px) {
  .app-seo-content__layout {
    grid-template-columns: 1fr;
  }

  .app-seo-content__toc-col {
    order: -1;
  }

  .app-seo-content__toc {
    position: static;
  }

  .app-seo-content__toc ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .app-seo-content__toc a {
    border-left: 0;
    border: 1px solid var(--border, #e8ecf4);
    padding: 8px 12px;
    font-size: 13px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .app-seo-content__toc a.is-active,
  .app-seo-content__toc a[aria-current="true"] {
    border-color: rgba(255, 179, 2, 0.45);
    background: rgba(255, 179, 2, 0.12);
  }

  .app-seo-content__chips {
    grid-template-columns: 1fr;
  }
}

/* FAQ accordion styles: home-faq.css (shared with homepage) */

/* ── Final CTA (matches homepage footer CTA) ── */
.page-app .iptv-faq + .app-cta.section {
  border-top: none;
}

.app-cta {
  background: linear-gradient(135deg, var(--app-blue) 0%, var(--app-navy) 100%);
  color: #fff;
}

.app-cta__box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.app-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  line-height: 1.3;
}

.app-cta p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 22px;
}

.app-cta__trust {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.app-cta__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-cta__trust i {
  color: var(--app-primary);
  font-size: 14px;
}

.app-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.app-cta__actions .app-btn {
  flex: 1 1 200px;
  max-width: 280px;
  min-width: min(100%, 220px);
}

/* ── Floating buttons ── */
.page-app .floating-contact {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-app .floating-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.page-app .floating-contact a:hover {
  transform: translateY(-3px);
}

.page-app .floating-contact .btn-whatsapp { background: #25d366; }
.page-app .floating-contact .btn-telegram { background: #0088cc; }

.page-app .floating-contact.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.page-app .back-to-top-wrapper.back-to-top-btn-show {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 124px);
  z-index: 999;
}

/* ── Responsive hero ── */
@media (max-width: 991.98px) {
  .app-hero__img-wrap {
    margin-top: 28px;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 767.98px) {
  .app-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
  }

  .app-hero__actions .app-btn {
    width: 100%;
    white-space: normal;
  }

  .app-hero__img-wrap.d-md-block {
    display: none !important;
  }

  .app-cta__actions .app-btn {
    max-width: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-rec-card,
  .app-rec-card__link,
  .app-rec-card__link-arrow {
    transition: none;
  }

  .app-rec-card:hover,
  .app-rec-card__link:hover,
  .app-rec-card__link:hover .app-rec-card__link-arrow {
    transform: none;
  }

  .app-device-card,
  .app-device-card__icon {
    transition: none;
  }

  .app-device-card:hover {
    transform: none;
  }

  .app-tabs__panel.is-active {
    animation: none;
  }

  .app-hero__pills li,
  .app-hero__pill,
  .app-btn {
    transition: none;
  }

  .app-hero__pills li:hover,
  .app-hero__pill:hover,
  .app-btn:hover,
  .app-btn:active {
    transform: none;
  }
}
