/* IPTV Canada Pricing Tabs — Scoped Styles */
.iptv-pricing-wrap {
  --iptv-bg-primary: #0A0E1A;
  --iptv-bg-card: rgba(255, 255, 255, 0.06);
  --iptv-bg-card-hover: rgba(255, 255, 255, 0.10);
  --iptv-bg-card-best: rgba(239, 68, 68, 0.08);
  --iptv-border-card: rgba(255, 255, 255, 0.12);
  --iptv-border-best: rgba(239, 68, 68, 0.4);
  --iptv-text-primary: #F8FAFC;
  --iptv-text-secondary: #94A3B8;
  --iptv-text-muted: #64748B;
  --iptv-accent-green: #22C55E;
  --iptv-accent-red: #EF4444;
  --iptv-accent-blue: #3B82F6;
  --iptv-accent-purple: #8B5CF6;
  --iptv-glass-blur: 20px;

  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--iptv-text-primary);
  background: var(--iptv-bg-primary);
  border-radius: 24px;
  overflow: hidden;
}

/* Reset inherited WordPress styles */
.iptv-pricing-wrap *,
.iptv-pricing-wrap *::before,
.iptv-pricing-wrap *::after {
  box-sizing: border-box;
}

/* Background gradient orbs */
.iptv-bg-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.iptv-bg-orbs::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
  top: -200px;
  left: -100px;
}
.iptv-bg-orbs::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
  bottom: -150px;
  right: -100px;
}

/* Sale Banner */
.iptv-sale-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 32px;
}
.iptv-sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 100px;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 15px;
  color: #FCA5A5;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  animation: iptv-pulse-glow 2s ease-in-out infinite;
}
.iptv-sale-badge svg {
  flex-shrink: 0;
}

@keyframes iptv-pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.15); }
  50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.3); }
}

/* Header */
.iptv-pricing-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 40px;
}
.iptv-pricing-header h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px 0;
  padding: 0;
  background: linear-gradient(135deg, #F8FAFC, #CBD5E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.iptv-pricing-header p {
  font-size: 17px;
  color: var(--iptv-text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tabs */
.iptv-tabs-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.iptv-tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 5px;
  backdrop-filter: blur(10px);
}
.iptv-tab-btn {
  position: relative;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--iptv-text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: none;
  white-space: nowrap;
  line-height: 1.4;
}
.iptv-tab-btn:hover {
  color: var(--iptv-text-primary);
  background: rgba(0, 0, 0, 0.04);
}
.iptv-tab-btn.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--iptv-accent-blue), var(--iptv-accent-purple)) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.iptv-tab-btn:focus-visible {
  outline: 2px solid var(--iptv-accent-blue);
  outline-offset: 2px;
}

/* Cards Grid */
.iptv-tab-content {
  position: relative;
  z-index: 1;
  display: none;
}
.iptv-tab-content.active {
  display: block;
  animation: iptv-fadeIn 0.3s ease;
}
@keyframes iptv-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.iptv-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 10px 4px;
}

/* Pricing Card */
.iptv-pricing-card {
  position: relative;
  background: var(--iptv-bg-card);
  border: 1px solid var(--iptv-border-card);
  border-radius: 20px;
  padding: 32px 24px;
  backdrop-filter: blur(var(--iptv-glass-blur));
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.iptv-pricing-card:hover {
  background: var(--iptv-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Best Deal Card */
.iptv-pricing-card.iptv-best-deal {
  background: var(--iptv-bg-card-best);
  border-color: var(--iptv-border-best);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.15), 0 0 60px rgba(239, 68, 68, 0.05);
}
.iptv-pricing-card.iptv-best-deal:hover {
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.25), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.iptv-best-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 100px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  white-space: nowrap;
  line-height: 1.4;
}

.iptv-card-duration {
  font-size: 14px;
  font-weight: 600;
  color: var(--iptv-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.iptv-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.iptv-old-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--iptv-text-muted);
  text-decoration: line-through;
}
.iptv-sale-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 700;
  color: var(--iptv-text-primary);
  line-height: 1;
}
.iptv-best-deal .iptv-sale-price {
  color: #FCA5A5;
}

.iptv-per-month {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--iptv-accent-green);
  font-weight: 500;
  margin-bottom: 24px;
}

.iptv-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

/* Feature List */
.iptv-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 28px 0;
  padding: 0;
  flex: 1;
}
.iptv-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--iptv-text-secondary);
  line-height: 1.4;
  margin: 0;
  padding: 0;
}
.iptv-features-list li svg {
  flex-shrink: 0;
  color: var(--iptv-accent-green);
}

/* CTA Button */
.iptv-cta-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--iptv-text-primary);
  line-height: 1.4;
}
.iptv-cta-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  color: var(--iptv-text-primary);
  text-decoration: none;
}
.iptv-cta-btn:focus-visible {
  outline: 2px solid var(--iptv-accent-blue);
  outline-offset: 2px;
}
.iptv-best-deal .iptv-cta-btn {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  border-color: transparent;
}
.iptv-best-deal .iptv-cta-btn:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #F87171, #EF4444);
  color: #fff;
}

/* Trust Badges */
.iptv-trust-section {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.iptv-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--iptv-text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--iptv-bg-card);
  border: 1px solid var(--iptv-border-card);
  border-radius: 10px;
}
.iptv-trust-badge svg {
  flex-shrink: 0;
  color: var(--iptv-accent-green);
}

/* ─── Light Mode ─── */
.iptv-pricing-wrap.iptv-light {
  --iptv-bg-primary: #FFFFFF;
  --iptv-bg-card: rgba(0, 0, 0, 0.03);
  --iptv-bg-card-hover: rgba(0, 0, 0, 0.06);
  --iptv-bg-card-best: rgba(239, 68, 68, 0.06);
  --iptv-border-card: rgba(0, 0, 0, 0.10);
  --iptv-border-best: rgba(239, 68, 68, 0.35);
  --iptv-text-primary: #0F172A;
  --iptv-text-secondary: #475569;
  --iptv-text-muted: #64748B;
  --iptv-accent-green: #16A34A;
  --iptv-accent-red: #DC2626;
  --iptv-accent-blue: #2563EB;
  --iptv-accent-purple: #7C3AED;
  background: var(--iptv-bg-primary);
  color: var(--iptv-text-primary);
}
.iptv-light .iptv-bg-orbs::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
}
.iptv-light .iptv-bg-orbs::after {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05), transparent 70%);
}
.iptv-light .iptv-pricing-header h2 {
  background: linear-gradient(135deg, #0F172A, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.iptv-light .iptv-sale-badge {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
  color: #DC2626;
  border-color: rgba(239, 68, 68, 0.25);
}
.iptv-light .iptv-tabs {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
.iptv-light .iptv-tab-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.iptv-light .iptv-pricing-card {
  background: var(--iptv-bg-card);
  border-color: var(--iptv-border-card);
  backdrop-filter: none;
}
.iptv-light .iptv-pricing-card:hover {
  background: var(--iptv-bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.iptv-light .iptv-pricing-card.iptv-best-deal {
  background: var(--iptv-bg-card-best);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.08), 0 0 60px rgba(239, 68, 68, 0.03);
}
.iptv-light .iptv-pricing-card.iptv-best-deal:hover {
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.12), 0 20px 40px rgba(0, 0, 0, 0.08);
}
.iptv-light .iptv-best-deal .iptv-sale-price {
  color: #DC2626;
}
.iptv-light .iptv-old-price {
  color: #94A3B8;
}
.iptv-light .iptv-divider {
  background: rgba(0, 0, 0, 0.08);
}
.iptv-light .iptv-cta-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--iptv-text-primary);
  border-color: rgba(0, 0, 0, 0.10);
}
.iptv-light .iptv-cta-btn:hover {
  background: rgba(0, 0, 0, 0.10);
  color: var(--iptv-text-primary);
}
.iptv-light .iptv-best-deal .iptv-cta-btn {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  border-color: transparent;
}
.iptv-light .iptv-best-deal .iptv-cta-btn:hover {
  background: linear-gradient(135deg, #F87171, #EF4444);
  color: #fff;
}
.iptv-light .iptv-faq-item {
  background: var(--iptv-bg-card);
  border-color: var(--iptv-border-card);
  backdrop-filter: none;
}
.iptv-light .iptv-faq-toggle:hover {
  background: rgba(0, 0, 0, 0.03);
}
.iptv-light .iptv-step {
  background: var(--iptv-bg-card);
  border-color: var(--iptv-border-card);
  backdrop-filter: none;
}
.iptv-light .iptv-crosslinks {
  background: var(--iptv-bg-card);
  border-color: var(--iptv-border-card);
  backdrop-filter: none;
}
.iptv-light .iptv-comparison-table th {
  background: rgba(0, 0, 0, 0.04);
}
.iptv-light .iptv-comparison-table th,
.iptv-light .iptv-comparison-table td {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.iptv-light .iptv-comparison-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Responsive */
@media (max-width: 1024px) {
  .iptv-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .iptv-pricing-wrap {
    padding: 24px 12px 48px;
    border-radius: 12px;
  }
  .iptv-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
    margin: 0 auto;
  }
  .iptv-pricing-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .iptv-sale-price {
    font-size: 32px;
  }
  .iptv-tabs-wrapper {
    margin-bottom: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 4px;
  }
  .iptv-tabs {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .iptv-tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  .iptv-pricing-header h2 {
    font-size: 24px;
  }
  .iptv-pricing-header p {
    font-size: 15px;
  }
  .iptv-trust-section {
    gap: 8px;
    justify-content: center;
  }
  .iptv-trust-badge {
    font-size: 11px;
    padding: 8px 12px;
    gap: 6px;
  }
  .iptv-trust-badge svg {
    width: 14px;
    height: 14px;
  }
  .iptv-sale-badge {
    font-size: 12px;
    padding: 8px 16px;
    gap: 6px;
  }
  .iptv-sale-badge svg {
    width: 14px;
    height: 14px;
  }
  .iptv-content-section {
    margin-bottom: 28px;
  }
  .iptv-content-section h2 {
    font-size: 20px;
  }
  .iptv-content-section h3 {
    font-size: 18px;
  }
  .iptv-content-section p {
    font-size: 14px;
  }
  .iptv-faq-section {
    margin-top: 32px;
  }
  .iptv-faq-section h3 {
    font-size: 22px;
  }
  .iptv-faq-toggle {
    font-size: 14px;
    padding: 14px 16px;
  }
  .iptv-faq-answer p {
    padding: 0 16px 14px;
    font-size: 13px;
  }
  .iptv-step {
    padding: 16px;
  }
  .iptv-comparison-table {
    font-size: 12px;
  }
  .iptv-comparison-table th,
  .iptv-comparison-table td {
    padding: 8px 10px;
  }
  .iptv-best-badge {
    font-size: 11px;
    padding: 5px 16px;
  }
  .iptv-features-list li {
    font-size: 12.5px;
    gap: 8px;
  }
  .iptv-cta-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}
@media (max-width: 380px) {
  .iptv-pricing-wrap {
    padding: 20px 10px 40px;
  }
  .iptv-sale-price {
    font-size: 28px;
  }
  .iptv-old-price {
    font-size: 16px;
  }
}

/* ─── Compact Mode ─── */
.iptv-compact {
  padding: 32px 20px 48px;
}
.iptv-compact .iptv-pricing-card {
  padding: 24px 20px;
}

/* ─── Content Sections ─── */
.iptv-content-section {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto 40px;
}
.iptv-content-section h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--iptv-text-primary);
  background: none;
  -webkit-text-fill-color: unset;
}
.iptv-content-section h3 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--iptv-text-primary);
}
.iptv-content-section p {
  font-size: 16px;
  color: var(--iptv-text-secondary);
  line-height: 1.7;
  margin: 0 0 14px 0;
}
.iptv-content-section a {
  color: var(--iptv-accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.iptv-content-section a:hover {
  color: #60A5FA;
}

/* ─── How-To Steps ─── */
.iptv-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.iptv-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--iptv-bg-card);
  border: 1px solid var(--iptv-border-card);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(10px);
}
.iptv-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--iptv-accent-blue), var(--iptv-accent-purple));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.iptv-step-content strong {
  display: block;
  font-size: 16px;
  color: var(--iptv-text-primary);
  margin-bottom: 4px;
}
.iptv-step-content p {
  font-size: 14px;
  margin: 0;
}

/* ─── Comparison Table ─── */
.iptv-comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.iptv-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
}
.iptv-comparison-table th,
.iptv-comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.iptv-comparison-table th {
  font-weight: 700;
  color: var(--iptv-text-primary);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.iptv-comparison-table th:first-child,
.iptv-comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--iptv-text-primary);
}
.iptv-comparison-table td {
  color: var(--iptv-text-secondary);
}
.iptv-comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ─── FAQ Section ─── */
.iptv-faq-section {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 48px auto 0;
}
.iptv-faq-section h3 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 28px 0;
  color: var(--iptv-text-primary);
}
.iptv-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.iptv-faq-item {
  background: var(--iptv-bg-card);
  border: 1px solid var(--iptv-border-card);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.iptv-faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--iptv-text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1.5;
}
.iptv-faq-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}
.iptv-faq-toggle:focus-visible {
  outline: 2px solid var(--iptv-accent-blue);
  outline-offset: -2px;
}
.iptv-faq-toggle svg {
  flex-shrink: 0;
  color: var(--iptv-text-muted);
  transition: transform 0.25s ease;
}
.iptv-faq-item.open .iptv-faq-toggle svg {
  transform: rotate(180deg);
}
.iptv-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.iptv-faq-item.open .iptv-faq-answer {
  max-height: 500px;
}
.iptv-faq-answer p {
  padding: 0 20px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--iptv-text-secondary);
}

/* ─── Cross-links ─── */
.iptv-crosslinks {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: var(--iptv-bg-card);
  border: 1px solid var(--iptv-border-card);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.iptv-crosslinks p {
  margin: 0 0 8px 0;
}
.iptv-crosslinks p:last-child {
  margin-bottom: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .iptv-pricing-card { transition: none; }
  .iptv-tab-content.active { animation: none; }
  .iptv-sale-badge { animation: none; }
  .iptv-cta-btn { transition: none; }
  .iptv-tab-btn { transition: none; }
}