/* =============================================
   iPerformanceTV - Premium Dark Theme
   Modern streaming-service aesthetic
   ============================================= */

/* ── CSS Custom Properties ── */
:root {
    /* Primary palette */
    --iptv-primary: #6C63FF;
    --iptv-primary-light: #8B83FF;
    --iptv-primary-dark: #5A52E0;
    --iptv-accent: #00D4AA;
    --iptv-accent-light: #33DDBB;

    /* Background layers (deep dark) */
    --iptv-bg-darkest: #0A0E1A;
    --iptv-bg-dark: #0F1423;
    --iptv-bg-card: #161B2E;
    --iptv-bg-card-hover: #1C2238;
    --iptv-bg-surface: #1E2436;
    --iptv-bg-lighter: #242A3F;

    /* Text */
    --iptv-text-primary: #F0F0F5;
    --iptv-text-secondary: #A0A3B1;
    --iptv-text-muted: #6B6F80;

    /* Gradients */
    --iptv-gradient-primary: linear-gradient(135deg, #6C63FF 0%, #00D4AA 100%);
    --iptv-gradient-hero: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.15) 0%, transparent 50%),
                          radial-gradient(ellipse at 80% 20%, rgba(0,212,170,0.1) 0%, transparent 50%),
                          radial-gradient(ellipse at 50% 100%, rgba(108,99,255,0.08) 0%, transparent 40%);
    --iptv-gradient-card: linear-gradient(145deg, rgba(108,99,255,0.08) 0%, rgba(0,212,170,0.04) 100%);
    --iptv-gradient-glow: linear-gradient(135deg, #6C63FF 0%, #00D4AA 50%, #6C63FF 100%);

    /* Borders */
    --iptv-border: rgba(108, 99, 255, 0.15);
    --iptv-border-hover: rgba(108, 99, 255, 0.4);

    /* Shadows */
    --iptv-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --iptv-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --iptv-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --iptv-shadow-glow: 0 0 30px rgba(108, 99, 255, 0.3);

    /* Spacing */
    --iptv-section-padding: 80px 0;
    --iptv-container-max: 1200px;

    /* Radius */
    --iptv-radius-sm: 8px;
    --iptv-radius-md: 12px;
    --iptv-radius-lg: 16px;
    --iptv-radius-xl: 24px;

    /* Transitions */
    --iptv-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global Reset & Base ── */

body,
.ast-separate-container,
.ast-plain-container {
    background-color: var(--iptv-bg-darkest) !important;
    color: var(--iptv-text-primary);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove Astra article wrapper on plain pages */
.ast-plain-container .site-content > .ast-container {
    max-width: 100%;
    padding: 0;
}

.ast-plain-container .ast-article-single {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

.ast-plain-container #primary {
    padding: 0;
    margin: 0;
}

/* Keep container for separate-container pages */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-comment-list li,
.ast-separate-container .comment-respond {
    background-color: var(--iptv-bg-card);
    border-radius: var(--iptv-radius-md);
}

a {
    color: var(--iptv-primary-light);
    transition: var(--iptv-transition);
}

a:hover {
    color: var(--iptv-accent);
}

::selection {
    background: var(--iptv-primary);
    color: #fff;
}

/* ── Typography ── */

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title {
    color: var(--iptv-text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1, .entry-title { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p, li, td, th {
    color: var(--iptv-text-secondary);
    line-height: 1.7;
}

/* ── Header ── */

.ast-primary-header-bar,
.site-header,
.main-header-bar,
.ast-primary-header {
    background-color: rgba(10, 14, 26, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--iptv-border);
}

.main-header-bar {
    box-shadow: none;
}

/* Header scrolled state */
.header-scrolled,
.header-scrolled .main-header-bar,
.header-scrolled .ast-primary-header-bar {
    background-color: rgba(10, 14, 26, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Site title / logo */
.site-title a,
.ast-site-identity .site-title a {
    color: var(--iptv-text-primary) !important;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.site-title a span,
.site-title a strong {
    background: var(--iptv-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links */
.ast-builder-menu .menu-item > a,
.ast-header-break-point .ast-builder-menu .menu-item > a {
    color: var(--iptv-text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--iptv-transition);
    padding: 8px 16px !important;
    position: relative;
}

.ast-builder-menu .menu-item > a:hover,
.ast-builder-menu .current-menu-item > a {
    color: var(--iptv-text-primary) !important;
}

.ast-builder-menu .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--iptv-gradient-primary);
    border-radius: 1px;
}

/* Fix: Prevent menu items from getting button styling */
.ast-builder-menu .menu-item > a.ast-button,
.ast-builder-menu .menu-item.menu-item-has-children > a {
    background: none !important;
    box-shadow: none !important;
    color: var(--iptv-text-secondary) !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
}

.ast-builder-menu .menu-item > a.ast-button:hover,
.ast-builder-menu .menu-item.menu-item-has-children > a:hover {
    color: var(--iptv-text-primary) !important;
    background: none !important;
}

/* Hide submenu toggle button — Astra shows it as blue box */
.main-header-menu .ast-menu-toggle,
.ast-builder-menu .ast-menu-toggle,
#ast-desktop-header .ast-menu-toggle,
#ast-mobile-header .ast-menu-toggle,
button.ast-menu-toggle {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
}

/* Also reset any button styling on header navigation arrows */
.ast-header-navigation-arrow,
.dropdown-menu-toggle.ast-header-navigation-arrow {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--iptv-text-secondary) !important;
    padding: 0 !important;
}

/* Nuclear: hide ANY blue-styled button in the header nav */
#ast-desktop-header button:not(.main-header-menu-toggle):not(.search-submit),
#ast-mobile-header .main-header-bar-navigation button:not(.main-header-menu-toggle):not(.search-submit) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Dropdown submenu styling */
.ast-builder-menu .sub-menu {
    background: var(--iptv-bg-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: 8px !important;
    box-shadow: var(--iptv-shadow-md) !important;
    padding: 8px 0 !important;
}

.ast-builder-menu .sub-menu .menu-item > a {
    color: var(--iptv-text-secondary) !important;
    padding: 8px 20px !important;
}

.ast-builder-menu .sub-menu .menu-item > a:hover {
    color: #fff !important;
    background: rgba(108, 99, 255, 0.15) !important;
}

/* Sticky header */
.ast-primary-sticky-header-active .ast-primary-header-bar,
.ast-sticky-active .main-header-bar {
    background-color: rgba(10, 14, 26, 0.98) !important;
    box-shadow: var(--iptv-shadow-md);
}

/* Mobile menu */
.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-header-content,
.ast-mobile-popup-content {
    background-color: var(--iptv-bg-dark) !important;
}

.ast-mobile-popup-drawer .menu-item > a {
    color: var(--iptv-text-primary) !important;
    border-color: var(--iptv-border);
}

.ast-button-wrap .menu-toggle {
    color: var(--iptv-text-primary) !important;
}

/* ── Hero Section ── */

.iptv-hero {
    position: relative;
    padding: 100px 20px 80px !important;
    min-height: 400px;
    background: var(--iptv-gradient-hero), var(--iptv-bg-darkest);
    text-align: center;
    overflow: hidden;
    contain: layout style paint;
}

.iptv-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.iptv-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--iptv-bg-darkest), transparent);
    pointer-events: none;
}

.iptv-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.iptv-hero h1 strong {
    background: var(--iptv-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iptv-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--iptv-text-secondary);
    max-width: 650px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.iptv-hero .iptv-btn-primary {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    padding: 16px 36px;
}

/* Fix wpautop wrapping buttons in <p> tags */
.iptv-hero p:last-of-type {
    position: relative;
    z-index: 1;
}

.iptv-hero p a.iptv-btn-primary,
.iptv-hero p a.iptv-btn-secondary {
    margin-top: 10px;
}

/* Hero buttons container */
.iptv-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

.iptv-hero-content .iptv-hero-buttons {
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .iptv-hero-content .iptv-hero-buttons {
        justify-content: center;
    }
}

/* Hero with image layout */
.iptv-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--iptv-container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.iptv-hero-content {
    flex: 1;
    text-align: left;
}

.iptv-hero-image {
    flex: 0 0 400px;
    max-width: 400px;
}

.iptv-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--iptv-radius-lg);
    box-shadow: var(--iptv-shadow-lg);
}

@media (max-width: 900px) {
    .iptv-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .iptv-hero-content {
        text-align: center;
    }
    .iptv-hero-image {
        flex: none;
        max-width: 300px;
    }
}

/* Channel logos strip */
.iptv-channel-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 30px 20px;
    flex-wrap: wrap;
    max-width: var(--iptv-container-max);
    margin: 0 auto;
}

.iptv-channel-logos img {
    height: 40px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%) brightness(2);
    transition: var(--iptv-transition);
}

.iptv-channel-logos img:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

@media (max-width: 576px) {
    .iptv-channel-logos {
        gap: 20px;
    }
    .iptv-channel-logos img {
        height: 28px;
    }
}

/* SEO content with side image */
.iptv-content-with-image {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
    max-width: var(--iptv-container-max);
    margin: 0 auto;
    padding: 40px 20px;
}

.iptv-content-with-image img {
    width: 100%;
    border-radius: var(--iptv-radius-lg);
    box-shadow: var(--iptv-shadow-md);
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .iptv-content-with-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .iptv-content-with-image img {
        position: static;
        max-width: 350px;
        margin: 0 auto;
        display: block;
    }
}

/* ── Buttons ── */

.iptv-btn,
.wp-block-button__link,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.ast-button,
.menu-item.iptv-cta-button > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--iptv-radius-sm);
    cursor: pointer;
    transition: var(--iptv-transition);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.iptv-btn-primary,
.wp-block-button__link,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--iptv-gradient-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.iptv-btn-primary:hover,
.wp-block-button__link:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.5);
    color: #fff !important;
}

.iptv-btn-secondary,
.woocommerce a.button:not(.alt),
.woocommerce button.button:not(.alt) {
    background: transparent;
    color: var(--iptv-text-primary) !important;
    border: 2px solid var(--iptv-border-hover);
}

.iptv-btn-secondary:hover,
.woocommerce a.button:not(.alt):hover {
    border-color: var(--iptv-primary);
    color: var(--iptv-primary-light) !important;
    background: rgba(108, 99, 255, 0.1);
}

/* Glowing CTA button */
.iptv-btn-glow {
    background: var(--iptv-gradient-primary);
    color: #fff;
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: var(--iptv-radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--iptv-shadow-glow);
}

.iptv-btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.1), transparent 30%);
    animation: iptv-rotate 4s linear infinite;
}

@keyframes iptv-rotate {
    100% { transform: rotate(360deg); }
}

.iptv-btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.5);
    color: #fff;
}

/* ── Homepage Sections (inside entry-content) ── */
/* Scope to front page only to avoid affecting blog/tutorial pages */

.home .ast-plain-container .entry-content {
    color: var(--iptv-text-secondary);
}

.home .ast-plain-container .entry-content > h2 {
    text-align: center;
    margin: 40px auto 10px;
    padding: 0 20px;
    max-width: var(--iptv-container-max);
}

.home .ast-plain-container .entry-content > p {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.home .ast-plain-container .entry-content > div {
    max-width: var(--iptv-container-max);
    margin-left: auto;
    margin-right: auto;
}

/* Allow full-bleed children to break out of Astra container */
.ast-plain-container .site-content > .ast-container,
.ast-plain-container #primary,
.ast-plain-container .ast-article-single,
.ast-plain-container .entry-content {
    overflow: visible;
}

/* Full-bleed mixin */
.iptv-hero,
.iptv-stats-grid,
.iptv-trust-badges {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: none !important;
    box-sizing: border-box;
}

/* Hero specific */
.iptv-hero {
    margin-top: -20px;
}

/* Stats with dark bg for visual break */
.iptv-stats-grid {
    background: var(--iptv-bg-dark);
    border-top: 1px solid var(--iptv-border);
    border-bottom: 1px solid var(--iptv-border);
    padding: 60px calc((100vw - var(--iptv-container-max)) / 2);
    margin-top: 40px;
}

/* Trust badges section */
.iptv-trust-badges {
    background: var(--iptv-bg-card);
    border-top: 1px solid var(--iptv-border);
    border-bottom: 1px solid var(--iptv-border);
    padding: 60px calc((100vw - var(--iptv-container-max)) / 2);
}

@media (max-width: 1200px) {
    .iptv-stats-grid,
    .iptv-trust-badges {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ── Section Titles ── */

.iptv-section-title,
.ast-plain-container .entry-content > h2 {
    position: relative;
    padding-bottom: 20px;
}

.ast-plain-container .entry-content > h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--iptv-gradient-primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ── Free Trial CTA Section ── */

.iptv-free-trial-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 60px;
    background: var(--iptv-gradient-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-xl);
    margin: 60px auto;
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.iptv-free-trial-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--iptv-gradient-primary);
}

.iptv-trial-content h2 {
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.iptv-trial-content p {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .iptv-free-trial-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
}

/* ── Stats Counter ── */

.iptv-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.iptv-stat-item {
    text-align: center;
    padding: 36px 20px;
    background: var(--iptv-bg-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-lg);
    transition: var(--iptv-transition);
    position: relative;
    overflow: hidden;
}

.iptv-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--iptv-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iptv-stat-item:hover {
    border-color: var(--iptv-border-hover);
    transform: translateY(-6px);
    box-shadow: var(--iptv-shadow-glow);
}

.iptv-stat-item:hover::before {
    opacity: 1;
}

.iptv-stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--iptv-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.iptv-stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--iptv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .iptv-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ── Pricing Toggle ── */

.iptv-pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0 auto 10px;
    max-width: 380px;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--iptv-primary);
    background: var(--iptv-bg-surface);
}

.iptv-pricing-toggle-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--iptv-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--iptv-transition);
}

.iptv-pricing-toggle-btn.active {
    background: var(--iptv-primary);
    color: #fff;
}

.iptv-pricing-toggle-btn:hover:not(.active) {
    color: var(--iptv-text-primary);
    background: rgba(108, 99, 255, 0.1);
}

/* ── Pricing Cards ── */

.iptv-pricing-grid {
    display: grid;
    gap: 24px;
    padding: 40px 20px;
    max-width: var(--iptv-container-max);
    margin: 0 auto;
}

.iptv-pricing-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.iptv-pricing-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .iptv-pricing-grid.columns-3,
    .iptv-pricing-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .iptv-pricing-grid.columns-3,
    .iptv-pricing-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}

.iptv-pricing-card {
    position: relative;
    background: var(--iptv-bg-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-lg);
    padding: 40px 28px 32px;
    text-align: center;
    transition: var(--iptv-transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.iptv-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--iptv-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iptv-pricing-card:hover {
    border-color: var(--iptv-border-hover);
    transform: translateY(-8px);
    box-shadow: var(--iptv-shadow-lg);
}

.iptv-pricing-card:hover::before {
    opacity: 1;
}

.iptv-pricing-card.is-popular {
    border-color: var(--iptv-primary);
    background: var(--iptv-gradient-card);
    box-shadow: var(--iptv-shadow-glow);
    transform: scale(1.03);
}

.iptv-pricing-card.is-popular::before {
    opacity: 1;
}

.iptv-pricing-card.is-popular:hover {
    transform: scale(1.03) translateY(-8px);
}

.iptv-popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--iptv-gradient-primary);
    color: #fff;
    padding: 6px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0 0 var(--iptv-radius-sm) var(--iptv-radius-sm);
}

.iptv-pricing-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--iptv-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.iptv-pricing-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--iptv-border);
}

.iptv-price-amount,
.iptv-price-amount .woocommerce-Price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--iptv-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iptv-price-amount del .woocommerce-Price-amount {
    font-size: 1.2rem;
    opacity: 0.5;
    background: none;
    -webkit-text-fill-color: var(--iptv-text-muted);
}

.iptv-price-amount ins {
    text-decoration: none;
}

.iptv-pricing-features {
    flex: 1;
    text-align: left;
    margin-bottom: 24px;
    color: var(--iptv-text-secondary);
    font-size: 0.9rem;
    line-height: 2;
    padding: 0 4px;
}

.iptv-pricing-features strong {
    display: block;
    color: var(--iptv-text-primary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.iptv-pricing-features ul {
    list-style: none;
    padding: 0;
}

.iptv-pricing-features li::before {
    content: '\2713';
    color: var(--iptv-accent);
    font-weight: 700;
    margin-right: 10px;
}

.iptv-pricing-cta {
    margin-top: auto;
}

.iptv-pricing-cta .iptv-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--iptv-radius-md);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Trust Badges ── */

.iptv-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.iptv-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px 16px;
    text-align: center;
    color: var(--iptv-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--iptv-bg-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-lg);
    transition: var(--iptv-transition);
}

.iptv-trust-item:hover {
    border-color: var(--iptv-border-hover);
    transform: translateY(-4px);
}

.iptv-trust-item svg {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .iptv-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ── Feature Cards ── */

.iptv-features-grid,
div[style*="grid-template-columns"] {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: var(--iptv-container-max);
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.iptv-features-grid > *,
div[style*="grid-template-columns"] > * {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 280px;
}

.iptv-features-grid .iptv-feature-card,
.iptv-feature-card {
    background: var(--iptv-bg-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-lg);
    padding: 32px 24px;
    transition: var(--iptv-transition);
    position: relative;
    overflow: hidden;
}

.iptv-features-grid .iptv-feature-card::before,
.iptv-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--iptv-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iptv-features-grid .iptv-feature-card:hover,
.iptv-feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--iptv-border-hover);
    box-shadow: var(--iptv-shadow-md);
}

.iptv-features-grid .iptv-feature-card:hover::before,
.iptv-feature-card:hover::before {
    opacity: 1;
}

.iptv-feature-card h3 {
    color: var(--iptv-text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.iptv-feature-card p {
    color: var(--iptv-text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Tutorials Grid ── */

.iptv-tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 20px 20px 60px;
    max-width: var(--iptv-container-max);
    margin: 0 auto;
}

.iptv-tutorial-card {
    display: flex;
    flex-direction: column;
    background: var(--iptv-bg-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--iptv-transition);
}

.iptv-tutorial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.15);
    border-color: var(--iptv-primary);
}

.iptv-tutorial-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--iptv-bg-lighter);
}

.iptv-tutorial-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.iptv-tutorial-card:hover .iptv-tutorial-thumb img {
    transform: scale(1.05);
}

.iptv-tutorial-content {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.iptv-tutorial-title {
    color: var(--iptv-text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.iptv-tutorial-excerpt {
    color: var(--iptv-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex-grow: 1;
}

.iptv-tutorial-read-more {
    color: var(--iptv-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.iptv-tutorial-card:hover .iptv-tutorial-read-more {
    color: var(--iptv-accent);
}

/* ── Blog Layout with Sidebar ── */

.iptv-blog-layout {
    display: flex;
    gap: 2rem;
    max-width: var(--iptv-container-max);
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.iptv-blog-layout .iptv-tutorials-grid {
    padding: 0;
    max-width: none;
    margin: 0;
}

.iptv-blog-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.iptv-sidebar-title {
    color: var(--iptv-text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--iptv-border);
}

.iptv-cat-filter {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iptv-cat-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--iptv-text-secondary);
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--iptv-radius);
    cursor: pointer;
    transition: var(--iptv-transition);
}

.iptv-cat-btn:hover {
    color: var(--iptv-text-primary);
    background: var(--iptv-bg-lighter);
}

.iptv-cat-btn.active {
    color: #fff;
    background: var(--iptv-primary);
    font-weight: 600;
}

.iptv-blog-main {
    flex: 1;
    min-width: 0;
}

.iptv-post-category {
    display: inline-block;
    background: rgba(108, 99, 255, 0.15);
    color: var(--iptv-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .iptv-tutorials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .iptv-blog-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .iptv-blog-sidebar {
        position: static;
        flex: none;
    }

    .iptv-cat-filter {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .iptv-cat-btn {
        width: auto;
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* ── Footer ── */

.site-footer,
.ast-footer,
.ast-small-footer,
.site-below-footer-wrap,
.ast-footer-overlay {
    background-color: var(--iptv-bg-dark) !important;
    color: var(--iptv-text-secondary);
    border-top: 1px solid var(--iptv-border);
}

.ast-footer a,
.site-footer a {
    color: var(--iptv-text-secondary);
}

.ast-footer a:hover,
.site-footer a:hover {
    color: var(--iptv-accent);
}

.ast-small-footer .ast-footer-copyright {
    color: var(--iptv-text-muted);
    font-size: 0.85rem;
}

.ast-builder-footer-grid-columns .footer-widget-area .widget-title,
.footer-adv .widget-title {
    color: var(--iptv-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.ast-builder-footer-grid-columns .footer-widget-area .widget-title::after,
.footer-adv .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--iptv-gradient-primary);
    border-radius: 2px;
}

/* ── Content areas (blog, single posts) ── */

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    background-color: var(--iptv-bg-card) !important;
    padding: 40px;
    border: 1px solid var(--iptv-border);
}

/* Force dark background on single post container */
.single-post .ast-separate-container .ast-article-single,
.single-post .site-content .ast-container,
.single-post #primary,
.single-post .ast-article-single {
    background-color: var(--iptv-bg-card) !important;
    color: var(--iptv-text-primary) !important;
}

.single-post .ast-separate-container,
.single-post .ast-plain-container {
    background-color: var(--iptv-bg-darkest) !important;
}

/* Post meta (date, author) */
.single-post .entry-meta,
.single-post .entry-meta a,
.single-post .post-meta-wrapper,
.single-post .ast-blog-single-element {
    color: var(--iptv-text-muted) !important;
}

.single-post .entry-meta a:hover {
    color: var(--iptv-primary-light) !important;
}

/* Comment section dark */
.single-post .comments-area,
.single-post .comment-respond {
    background-color: var(--iptv-bg-card) !important;
    color: var(--iptv-text-primary) !important;
}

.entry-content {
    color: var(--iptv-text-secondary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--iptv-text-primary);
    margin-top: 1.5em;
}

/* ── Single blog post overrides (light-on-dark readability) ── */
.single-post .entry-content {
    color: var(--iptv-text-primary);
}

.single-post .entry-content p,
.single-post .entry-content li,
.single-post .entry-content td {
    color: #D0D2DB;
    line-height: 1.8;
}

.single-post .entry-content h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-top: 2em;
}

.single-post .entry-content h3 {
    color: #E8E9F0;
    font-size: 1.25rem;
    margin-top: 1.5em;
}

.single-post .entry-content h4 {
    color: #D0D2DB;
}

.single-post .entry-content a {
    color: var(--iptv-primary-light);
}

.single-post .entry-content a:hover {
    color: var(--iptv-accent);
}

.single-post .entry-content strong {
    color: #ffffff;
}

.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.single-post .entry-content th {
    background: var(--iptv-bg-card);
    color: var(--iptv-text-primary);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--iptv-border);
}

.single-post .entry-content td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--iptv-border);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    padding-left: 1.5em;
    margin: 1em 0;
}

.single-post .entry-content li {
    margin-bottom: 0.5em;
}

/* Single post title */
.single-post .entry-title {
    color: #ffffff !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Related articles section */
.iptv-related-articles {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--iptv-border);
}

.iptv-related-articles h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.iptv-article-cta {
    margin-top: 20px;
}

/* Blog post cards */
.ast-separate-container .ast-article-post {
    margin-bottom: 30px;
    transition: var(--iptv-transition);
}

.ast-separate-container .ast-article-post:hover {
    border-color: var(--iptv-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--iptv-shadow-md);
}

.ast-article-post .post-thumb-img-content img {
    border-radius: var(--iptv-radius-md) var(--iptv-radius-md) 0 0;
}

/* ── Blog Archive Page ── */
.blog .ast-separate-container,
.blog .ast-plain-container,
.archive .ast-separate-container,
.archive .ast-plain-container {
    background-color: var(--iptv-bg-darkest) !important;
}

.blog .ast-separate-container .ast-article-post,
.blog .ast-article-post,
.blog article,
.archive .ast-separate-container .ast-article-post,
.archive .ast-article-post,
.archive article {
    background-color: var(--iptv-bg-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius-md) !important;
    margin-bottom: 30px;
    color: var(--iptv-text-secondary) !important;
}

.blog .ast-article-post *,
.archive .ast-article-post * {
    color: inherit;
}

.blog .blog-layout-3 .ast-article-post .ast-blog-featured-section,
.blog .ast-article-post .post-thumb-img-content,
.archive .ast-article-post .post-thumb-img-content {
    background-color: var(--iptv-bg-darkest) !important;
}

.blog .ast-article-post .entry-header,
.blog .ast-article-post .entry-content,
.blog .ast-article-post .entry-footer,
.archive .ast-article-post .entry-header,
.archive .ast-article-post .entry-content,
.archive .ast-article-post .entry-footer {
    background-color: var(--iptv-bg-card) !important;
}

.blog .cat-links a,
.archive .cat-links a {
    color: var(--iptv-primary-light) !important;
}

.blog .ast-archive-description,
.archive .ast-archive-description {
    background-color: var(--iptv-bg-darkest) !important;
    color: var(--iptv-text-primary) !important;
    text-align: center;
    padding: 50px 20px 30px !important;
}

.blog .ast-archive-description .page-title,
.archive .ast-archive-description .page-title,
.blog .page-title {
    color: #ffffff !important;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.blog .ast-archive-description p,
.archive .ast-archive-description p {
    color: var(--iptv-text-secondary) !important;
}

.blog .entry-title a,
.archive .entry-title a {
    color: #ffffff !important;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover {
    color: var(--iptv-primary-light) !important;
}

.blog .entry-meta,
.blog .entry-meta a,
.archive .entry-meta,
.archive .entry-meta a {
    color: var(--iptv-text-muted) !important;
}

.blog .entry-meta a:hover,
.archive .entry-meta a:hover {
    color: var(--iptv-primary-light) !important;
}

.blog .entry-content,
.blog .entry-content p,
.archive .entry-content,
.archive .entry-content p {
    color: var(--iptv-text-secondary) !important;
}

.blog .ast-read-more-container a,
.archive .ast-read-more-container a {
    color: var(--iptv-primary-light) !important;
}

/* Blog pagination */
.blog .ast-pagination,
.archive .ast-pagination {
    text-align: center;
}

.blog .ast-pagination a,
.archive .ast-pagination a {
    color: var(--iptv-text-primary) !important;
    background: var(--iptv-bg-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius-sm);
    padding: 8px 14px;
}

.blog .ast-pagination a:hover,
.archive .ast-pagination a:hover {
    background: var(--iptv-primary) !important;
    border-color: var(--iptv-primary) !important;
    color: #fff !important;
}

.blog .ast-pagination .current,
.archive .ast-pagination .current {
    background: var(--iptv-primary) !important;
    color: #fff !important;
    border-radius: var(--iptv-radius-sm);
    padding: 8px 14px;
}

/* Category archive header */
.category .ast-archive-description {
    background: var(--iptv-bg-darkest) !important;
    text-align: center;
    padding: 50px 20px 30px !important;
}

.category .ast-archive-description .page-title {
    color: #ffffff !important;
}

/* ── Hide Astra/WooCommerce page titles on pages with custom headings ── */
.woocommerce-page .woocommerce-products-header__title,
.woocommerce-page .page-title,
.woocommerce-page .entry-title,
.woocommerce-page .ast-archive-description .page-title,
.post-type-archive-product .page-title {
    display: none !important;
}

/* ── Shop Page Gap Fix ── */

.post-type-archive-product .ast-woocommerce-container,
.post-type-archive-product .woocommerce-products-header {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.post-type-archive-product .ast-archive-description {
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
}

/* Remove large hero gap on shop page mobile */
.post-type-archive-product .entry-content > .wp-block-cover,
.post-type-archive-product .entry-content > .wp-block-group,
.post-type-archive-product .ast-woocommerce-container > .wp-block-cover {
    min-height: auto !important;
}

@media (max-width: 768px) {
    .post-type-archive-product .ast-archive-description {
        padding: 30px 16px 16px !important;
    }
    .post-type-archive-product .ast-archive-description p {
        font-size: 14px !important;
    }
}

/* ── WordPress Block Columns (Homepage sections) ── */

.wp-block-columns {
    display: flex !important;
    flex-wrap: wrap;
    gap: 24px;
}

.wp-block-columns .wp-block-column {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
    .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* ── Contact Page ── */

.page-id-16 .entry-content > div[style*="grid"] {
    max-width: var(--iptv-container-max);
    margin: 0 auto;
    padding: 0 20px 60px;
}

.page-id-16 .wpcf7-form input,
.page-id-16 .wpcf7-form textarea {
    width: 100%;
}

.page-id-16 .wpcf7-form .wpcf7-submit {
    background: var(--iptv-gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: var(--iptv-radius-sm) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: var(--iptv-transition);
    width: 100%;
}

.page-id-16 .wpcf7-form .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.4);
}

/* ── Forms ── */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select {
    background-color: var(--iptv-bg-surface) !important;
    border: 1px solid var(--iptv-border) !important;
    color: var(--iptv-text-primary) !important;
    border-radius: var(--iptv-radius-sm) !important;
    padding: 12px 16px !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--iptv-transition);
}

.wpcf7-form label,
.wpcf7-form .wpcf7-list-item-label {
    color: var(--iptv-text-primary) !important;
}

.wpcf7-form .wpcf7-submit {
    background: var(--iptv-gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: var(--iptv-radius-sm) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: var(--iptv-transition);
    width: 100%;
}

.wpcf7-form .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 99, 255, 0.4);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--iptv-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15) !important;
}

::placeholder {
    color: var(--iptv-text-muted) !important;
}

label {
    color: var(--iptv-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ── Sidebar & Widgets ── */

.widget {
    background: var(--iptv-bg-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    color: var(--iptv-text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.widget a {
    color: var(--iptv-text-secondary);
}

.widget a:hover {
    color: var(--iptv-accent);
}

/* ── Breadcrumbs ── */

.ast-breadcrumbs,
.ast-breadcrumbs a {
    color: var(--iptv-text-muted) !important;
    font-size: 0.85rem;
}

.ast-breadcrumbs a:hover {
    color: var(--iptv-primary-light) !important;
}

/* ── Pagination ── */

.ast-pagination .page-numbers,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--iptv-bg-card);
    color: var(--iptv-text-secondary);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-sm);
    padding: 8px 14px;
    transition: var(--iptv-transition);
}

.ast-pagination .page-numbers.current,
.ast-pagination .page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--iptv-primary);
    color: #fff;
    border-color: var(--iptv-primary);
}

/* ── Scrollbar ── */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--iptv-bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: var(--iptv-bg-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--iptv-primary-dark);
}

/* ── Animations ── */

@keyframes iptv-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iptv-animate {
    animation: iptv-fade-in-up 0.6s ease-out forwards;
    opacity: 0;
}

.iptv-animate.delay-1 { animation-delay: 0.1s; }
.iptv-animate.delay-2 { animation-delay: 0.2s; }
.iptv-animate.delay-3 { animation-delay: 0.3s; }
.iptv-animate.delay-4 { animation-delay: 0.4s; }

/* ── WooCommerce Product Badge ── */

.iptv-badge-popular {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--iptv-gradient-primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    z-index: 1;
}

/* ── FAQ Accordion ── */

.iptv-faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.iptv-faq-item {
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--iptv-transition);
}

.iptv-faq-item:hover {
    border-color: var(--iptv-border-hover);
}

.iptv-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--iptv-bg-card);
    border: none;
    color: var(--iptv-text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 16px;
    transition: var(--iptv-transition);
}

.iptv-faq-question:hover {
    background: var(--iptv-bg-surface);
}

.iptv-faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--iptv-primary);
}

.iptv-faq-item.is-open .iptv-faq-question svg {
    transform: rotate(180deg);
}

.iptv-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    background: var(--iptv-bg-card);
}

.iptv-faq-item.is-open .iptv-faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.iptv-faq-answer p {
    color: var(--iptv-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.iptv-faq-answer a {
    color: var(--iptv-primary-light);
    text-decoration: underline;
}

.iptv-faq-answer a:hover {
    color: var(--iptv-accent);
}

@media (max-width: 576px) {
    .iptv-faq-question {
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .iptv-faq-item.is-open .iptv-faq-answer {
        padding: 0 18px 16px;
    }
}

/* ── Compatibility Grid ── */

.iptv-compatibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--iptv-container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.iptv-compatibility-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--iptv-bg-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-md);
    transition: var(--iptv-transition);
}

.iptv-compatibility-item:hover {
    border-color: var(--iptv-primary);
    transform: translateY(-4px);
    box-shadow: var(--iptv-shadow-md);
}

.iptv-compatibility-icon {
    margin-bottom: 16px;
}

.iptv-compatibility-item h3 {
    color: var(--iptv-text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.iptv-compatibility-item p {
    color: var(--iptv-text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .iptv-compatibility-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .iptv-compatibility-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Utility Classes ── */

.iptv-section {
    padding: 60px 0 20px;
}

.iptv-section + .iptv-section {
    padding-top: 20px;
}

.iptv-section-title {
    text-align: center;
    margin-bottom: 30px;
}

.iptv-section-title h2 {
    margin-bottom: 12px;
}

.iptv-section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--iptv-text-muted);
}

.iptv-gradient-text {
    background: var(--iptv-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iptv-glass {
    background: rgba(22, 27, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--iptv-border);
}

.iptv-container {
    max-width: var(--iptv-container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Responsive helpers ── */

@media (max-width: 992px) {
    :root {
        --iptv-section-padding: 60px 0;
    }
}

@media (max-width: 576px) {
    :root {
        --iptv-section-padding: 40px 0;
    }

    .iptv-hero {
        padding: 70px 16px 60px !important;
    }

    .iptv-pricing-card {
        padding: 30px 20px;
    }

    .iptv-pricing-card.is-popular {
        transform: none;
    }

    .iptv-pricing-card.is-popular:hover {
        transform: translateY(-8px);
    }

    .iptv-stats-grid {
        gap: 12px;
    }

    .iptv-stat-item {
        padding: 24px 12px;
    }
}

/* ── WooCommerce Checkout Dark Theme ── */

.woocommerce-checkout #primary,
.woocommerce-checkout .ast-container,
.woocommerce-checkout .ast-separate-container .ast-article-single {
    background-color: var(--iptv-bg-primary) !important;
    padding: 40px 20px !important;
}

.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce-checkout h3,
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
    color: var(--iptv-text-primary) !important;
}

.woocommerce-checkout label {
    color: var(--iptv-text-secondary) !important;
}

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    background-color: var(--iptv-bg-surface) !important;
    border: 1px solid var(--iptv-border) !important;
    color: var(--iptv-text-primary) !important;
    border-radius: var(--iptv-radius-sm) !important;
    padding: 10px 14px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--iptv-text-primary) !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 8px !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: var(--iptv-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2) !important;
}

/* Order review table */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    background: var(--iptv-bg-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius-md) !important;
    overflow: hidden;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    color: var(--iptv-text-primary) !important;
    border-color: var(--iptv-border) !important;
    padding: 12px 16px !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    color: var(--iptv-accent) !important;
    font-weight: 700;
}

/* Payment methods */
.woocommerce-checkout .wc_payment_methods {
    background: var(--iptv-bg-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius-md) !important;
    padding: 16px !important;
}

.woocommerce-checkout .wc_payment_methods label {
    color: var(--iptv-text-primary) !important;
}

.woocommerce-checkout .payment_box {
    background: var(--iptv-bg-surface) !important;
    color: var(--iptv-text-secondary) !important;
    border-radius: var(--iptv-radius-sm) !important;
}

.woocommerce-checkout .payment_box::before {
    border-bottom-color: var(--iptv-bg-surface) !important;
}

/* Place order button */
.woocommerce-checkout #place_order {
    background: var(--iptv-gradient-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: var(--iptv-radius-sm) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: var(--iptv-transition);
}

.woocommerce-checkout #place_order:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Privacy text */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .woocommerce-privacy-policy-text p {
    color: var(--iptv-text-muted) !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: var(--iptv-primary-light) !important;
}

/* Order type toggle (new / renewal) */
.iptv-order-type-section {
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--iptv-bg-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-md);
}

.iptv-order-type-section h3 {
    margin: 0 0 14px !important;
    font-size: 1rem;
}

.iptv-order-type-toggle {
    display: flex;
    gap: 0;
    border-radius: var(--iptv-radius-sm);
    overflow: hidden;
    border: 1px solid var(--iptv-border);
}

.iptv-type-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: var(--iptv-bg-surface);
    color: var(--iptv-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--iptv-transition);
}

.iptv-type-btn:not(:last-child) {
    border-right: 1px solid var(--iptv-border);
}

.iptv-type-btn:hover {
    color: var(--iptv-text-primary);
    background: var(--iptv-bg-lighter);
}

.iptv-type-btn.active {
    background: var(--iptv-primary);
    color: #fff;
}

#iptv-renewal-field label {
    color: var(--iptv-text-secondary) !important;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* ── WooCommerce Shop Page Dark Theme ── */

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--iptv-text-primary) !important;
}

.woocommerce ul.products li.product .price {
    color: var(--iptv-accent) !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--iptv-text-muted) !important;
}

.woocommerce ul.products li.product {
    background: var(--iptv-bg-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius-md) !important;
    padding: 16px !important;
    transition: var(--iptv-transition);
}

.woocommerce ul.products li.product:hover {
    border-color: var(--iptv-primary) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.12);
}

/* Product category label above title */
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-product-category {
    color: var(--iptv-text-muted) !important;
    font-size: 0.8rem;
}

/* Star rating */
.woocommerce .star-rating span::before,
.woocommerce ul.products li.product .star-rating span::before {
    color: #FFB800 !important;
}

.woocommerce .star-rating::before,
.woocommerce ul.products li.product .star-rating::before {
    color: var(--iptv-border) !important;
}

/* Rating count text */
.woocommerce ul.products li.product .star-rating ~ .count,
.woocommerce .woocommerce-product-rating .woocommerce-review-link,
.woocommerce ul.products li.product .ast-rating-text {
    color: var(--iptv-text-secondary) !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
    background: var(--iptv-accent) !important;
    color: #0a0e27 !important;
    font-weight: 700;
    border-radius: var(--iptv-radius-sm) !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--iptv-bg-card) !important;
    color: var(--iptv-text-secondary) !important;
    border-color: var(--iptv-border) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--iptv-primary) !important;
    color: #fff !important;
    border-color: var(--iptv-primary) !important;
}

/* Result count — full width above product grid */
.woocommerce .woocommerce-result-count {
    color: var(--iptv-text-muted) !important;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* ── WhatsApp Widget Fix ── */

.njt-wa-btn,
.wa-widget-send-button,
[class*="whatsapp"] .floating-btn,
.njt-wa-chat-box {
    z-index: 999 !important;
}

/* Push WhatsApp above footer overlap */
.njt-wa-btn {
    bottom: 20px !important;
    left: 20px !important;
}

/* Fix "Commandez ICI" floating text */
.njt-wa-chat-box,
.wa-widget-opened {
    bottom: 80px !important;
}

/* ── Footer Credit Removal ── */

.ast-small-footer .ast-footer-site-title,
.site-below-footer-wrap .ast-row .ast-small-footer-section,
.ast-small-footer .ast-small-footer-section-1,
.ast-small-footer .ast-small-footer-section-2 {
    color: var(--iptv-text-muted) !important;
}

/* Hide "Propulsé par Thème WordPress Astra" */
.ast-small-footer .ast-footer-site-title a[href*="developer.wordpress.org"],
.ast-small-footer .ast-footer-site-title a[href*="developer.wordpress.org"] + span,
.site-below-footer-wrap a[href*="developer.wordpress.org"],
.ast-small-footer-section a[href*="developer.wordpress.org"] {
    display: none !important;
}

/* Clean up footer credit text */
.ast-small-footer .ast-small-footer-section-1 {
    text-align: center;
}

/* ============================================= */
/* ── Testimonials Carousel ──                   */
/* ============================================= */

.iptv-testimonials-section {
    padding: 40px 0;
}

.iptv-testimonials-header {
    text-align: center;
    margin-bottom: 40px;
}

.iptv-testimonials-rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.iptv-rating-big {
    font-size: 56px;
    font-weight: 800;
    color: #FFD700;
    line-height: 1;
}

.iptv-rating-detail {
    text-align: left;
}

.iptv-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.iptv-rating-count {
    color: var(--iptv-text-muted);
    font-size: 14px;
}

.iptv-testimonials-track-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.iptv-testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.iptv-testimonial-card {
    width: calc((100vw - 140px) / 3);
    min-width: calc((100vw - 140px) / 3);
    max-width: 380px;
    background: var(--iptv-card-bg, rgba(30, 35, 60, 0.7));
    border: 1px solid rgba(120, 139, 255, 0.15);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.iptv-testimonial-stars {
    display: flex;
    gap: 2px;
}

.iptv-testimonial-text {
    color: var(--iptv-text-light, #c5c8d8);
    font-size: 15px;
    line-height: 1.7;
    flex: 1;
    font-style: italic;
    margin: 0;
}

.iptv-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iptv-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iptv-primary, #6C63FF), #788BFF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.iptv-testimonial-name {
    display: block;
    color: #fff;
    font-size: 15px;
}

.iptv-testimonial-location {
    display: block;
    color: var(--iptv-text-muted);
    font-size: 13px;
}

.iptv-testimonial-date {
    color: var(--iptv-text-muted);
    font-size: 12px;
    align-self: flex-end;
}

.iptv-testimonial-arrow {
    background: rgba(120, 139, 255, 0.15);
    border: 1px solid rgba(120, 139, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #788BFF;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.iptv-testimonial-arrow:hover {
    background: var(--iptv-primary, #6C63FF);
    color: #fff;
}

@media (max-width: 1023px) {
    .iptv-testimonial-card {
        width: calc((100vw - 80px) / 2);
        min-width: calc((100vw - 80px) / 2);
        max-width: none;
    }
}

@media (max-width: 639px) {
    .iptv-testimonial-card {
        width: calc(100vw - 60px);
        min-width: calc(100vw - 60px);
        max-width: none;
    }
    .iptv-testimonial-arrow {
        display: none;
    }
    .iptv-testimonials-track-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .iptv-testimonial-card {
        scroll-snap-align: start;
    }
}

/* ============================================= */
/* ── Why Choose Us Section ──                   */
/* ============================================= */

.iptv-why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 20px 0;
}

.iptv-why-us-card {
    background: var(--iptv-card-bg, rgba(30, 35, 60, 0.7));
    border: 1px solid rgba(120, 139, 255, 0.12);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.iptv-why-us-card:hover {
    border-color: rgba(120, 139, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.15);
}

.iptv-why-us-icon {
    margin-bottom: 16px;
}

.iptv-why-us-card h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.iptv-why-us-card p {
    color: var(--iptv-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .iptv-why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .iptv-why-us-grid {
        grid-template-columns: 1fr;
    }
}
