/*
Theme Name: IPTV Ultra Premium Cinematic Redesign
Text Domain: iptv-premium-seo
Description: Redesign complet avec un style ultra-premium "Apple Dark Mode" et des touches cinématiques.
Version: 4.0.0
Author: IPTV Expert
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --clr-bg-base: #000000;
    --clr-bg-surface: #0a0a0a;
    --clr-bg-glass: rgba(20, 20, 25, 0.4);
    
    --clr-accent-primary: #FFB300; /* Golden Yellow */
    --clr-accent-secondary: #FFC333;
    --clr-accent-glow: rgba(255, 179, 0, 0.5);
    
    --clr-text-main: #ffffff;
    --clr-text-muted: #a1a1aa;
    --clr-text-faint: #52525b;
    
    --clr-border: rgba(255, 255, 255, 0.08);
    --clr-border-hover: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-base);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

/* Dynamic Background Elements */
.aurora-bg {
    display: none;
}

/* Premium Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
    letter-spacing: 0px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
    background: var(--clr-accent-primary);
    color: #000; 
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.4);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--clr-border);
    color: #fff;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-border-hover);
    transform: translateY(-3px);
}

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 0;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-border);
    z-index: 1000;
    transition: var(--transition);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-weight: 900; font-size: 1.8rem; letter-spacing: -1px; display: flex; align-items: center; gap: 0.5rem; }
.logo-highlight { color: var(--clr-accent-primary); }

.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--clr-text-muted); transition: var(--transition); }
.main-nav a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
@media (max-width: 900px) { 
    .menu-toggle { display: block !important; margin-left: auto; }
    .main-nav { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 2rem 0; 
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: center; gap: 1.5rem; }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 40px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(to top, var(--clr-bg-base), transparent);
    z-index: 1; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.badge-pro {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 999px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--clr-border);
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 2rem; color: var(--clr-text-muted);
    backdrop-filter: blur(5px);
}
.badge-pro .dot { width: 8px; height: 8px; background: var(--clr-accent-primary); border-radius: 50%; box-shadow: 0 0 10px var(--clr-accent-primary); animation: pulse 2s infinite; }

h1.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--clr-text-muted);
    max-width: 650px; margin: 0 auto 3rem; font-weight: 400;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Grid Cards (Glassmorphism) */
.section { padding: 8rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.section-title span { color: var(--clr-accent-primary); }
.section-desc { font-size: 1.2rem; color: var(--clr-text-muted); max-width: 600px; margin: 0 auto; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.bento-card {
    background: var(--clr-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex; flex-direction: column;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 179, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.bento-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 50%);
    pointer-events: none; opacity: 0; transition: 0.5s;
}
.bento-card:hover::before { opacity: 1; }

.icon-wrapper {
    width: 64px; height: 64px; border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,179,0,0.1) 0%, transparent 100%);
    border: 1px solid rgba(255,179,0,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 2rem; color: var(--clr-accent-primary);
}
.bento-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
.bento-card p { color: var(--clr-text-muted); font-size: 1rem; }

/* Featured Wide Card */
.bento-wide { grid-column: span 2; display: flex; flex-direction: row; align-items: stretch; gap: 2rem; }
.bento-wide .content { flex: 1; align-self: center; }
.bento-wide .visual { flex: 1; position: relative; min-height: 300px; border-radius: 12px; background-color: rgba(0,0,0,0.3); overflow: hidden; display: flex; }


@media(max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-wide { grid-column: span 2; flex-direction: column; }
}
@media(max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; }
}

/* --- HIGH-END PRICING --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.price-card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.price-card:hover { border-color: rgba(255,255,255,0.2); }
.price-card.featured {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    border: 1px solid var(--clr-accent-primary);
    position: relative;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 179, 0, 0.15);
}
.price-card.featured::after {
    content: ''; position: absolute; top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-accent-primary), transparent);
}
.price-header { border-bottom: 1px solid var(--clr-border); padding-bottom: 2rem; margin-bottom: 2rem; }
.price-title { font-size: 1.25rem; color: var(--clr-text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 2px;}
.price-amount { font-size: 4rem; font-family: var(--font-heading); font-weight: 800; line-height: 1; margin: 0; }
.price-amount span { font-size: 1.25rem; color: var(--clr-text-faint); font-weight: 500; }
.price-features { list-style: none; padding: 0; margin: 0 0 3rem 0; flex-grow: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; color: var(--clr-text-muted); }
.feature-check { color: var(--clr-accent-primary); margin-top: 4px; }

/* Footer Overhaul */
.site-footer {
    padding: 6rem 0 2rem;
    background: var(--clr-bg-surface);
    border-top: 1px solid var(--clr-border);
    position: relative;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}
@media(max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-title {
    font-size: 1.1rem; margin-bottom: 1.5rem; text-transform: uppercase;
    letter-spacing: 2px; color: #fff;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--clr-text-muted); transition: 0.3s; }
.footer-links a:hover { color: var(--clr-accent-primary); padding-left: 5px; }

/* Cinematic Marquee */
.marquee-container {
    padding: 6rem 0; overflow: hidden; position: relative;
    background: transparent;
    border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border);
}
.marquee-container::before, .marquee-container::after {
    content: ''; position: absolute; top: 0; width: 200px; height: 100%; z-index: 2; pointer-events: none;
}
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--clr-bg-base), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--clr-bg-base), transparent); }

.marquee-content { display: flex; width: max-content; animation: scroll 45s linear infinite; gap: 2rem; }
.marquee-content:hover { animation-play-state: paused; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Assuming duplicate content in HTML for seamless loop */
}

.review-card {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--clr-border); border-radius: 20px;
    padding: 2rem; width: 380px; flex-shrink: 0;
    transition: var(--transition);
}
.review-card:hover { background: rgba(20, 20, 25, 0.9); border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.review-stars { color: #f59e0b; margin-bottom: 1rem; letter-spacing: 2px; }
.review-text { font-size: 1.05rem; color: #e4e4e7; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; font-weight: 500; }
.review-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--clr-bg-surface); border: 2px solid var(--clr-accent-primary); color: #fff; }
.author-info h4 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 700; }
.author-info p { font-size: 0.85rem; color: var(--clr-text-faint); margin: 0; margin-top: 0.2rem; }

/* Modern FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
    background: rgba(255,255,255,0.02); border: 1px solid var(--clr-border);
    border-radius: 16px; overflow: hidden; transition: var(--transition);
}
.faq-item:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.faq-q {
    padding: 1.5rem 2rem; cursor: pointer; font-family: var(--font-heading); font-size: 1.2rem;
    font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: #fff;
}
.faq-icon {
    width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.faq-a {
    padding: 0 2rem; max-height: 0; overflow: hidden; transition: all 0.4s ease;
    color: var(--clr-text-muted); line-height: 1.7;
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--clr-accent-primary); color: #000; }
.faq-item.active .faq-a { padding-bottom: 1.5rem; max-height: 400px; }

/* Stunning CTA */
.cta-overlay {
    background: #0a0a0a;
    border: 1px solid rgba(255,179,0,0.3); border-radius: 32px;
    padding: 6rem 3rem; text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.cta-overlay::before {
    content: ''; position: absolute; inset: 0;
    background: none; pointer-events: none;
}
.cta-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,179,0,0.7); } 70% { box-shadow: 0 0 0 10px rgba(255,179,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,179,0,0); } }

/* Premium Notification Sales Popup */
.sales-popup {
    position: fixed;
    bottom: -150px;
    left: 20px;
    background: linear-gradient(135deg, #FFC333 0%, var(--clr-accent-primary) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 30px rgba(255, 179, 0, 0.3), 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 999px;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.sales-popup.show {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sales-popup-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: #000;
    border: none;
    color: var(--clr-accent-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sales-popup-content p { margin: 0; line-height: 1.3; color: rgba(0,0,0,0.8); font-size: 0.85rem; font-weight: 600;}
.sales-popup-content p strong { color: #000; font-weight: 800; }
.sales-popup-content .sales-plan-text { color: #000; font-weight: 900; font-size: 0.95rem; margin-top:0.1rem; }
.sales-popup-content .sales-location { font-size: 0.75rem; color: rgba(0,0,0,0.6); font-weight: 700; margin-top: 0.2rem; }
@media (max-width: 600px) {
    .sales-popup { left: 10px; right: 10px; bottom: -120px; padding: 1rem; }
    .sales-popup.show { bottom: 10px; }
}

/* =========================================================================
   # ORDER MODAL (LEAD CAPTURE)
   ========================================================================= */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 1rem;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content {
    background: #0a0a0a; border: 1px solid rgba(255,179,0,0.3); border-radius: 24px;
    padding: 3rem; width: 100%; max-width: 500px; position: relative;
    transform: translateY(20px) scale(0.95); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}
.modal-overlay.show .modal-content { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); cursor: pointer; padding: 0.5rem; transition: background 0.3s, color 0.3s; border-radius: 50%; display:flex; align-items:center; justify-content:center;
}
.modal-close:hover { color: white; background: rgba(255,255,255,0.1); }

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    z-index: 10000;
    transition: transform 0.3s;
}
.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
}
@media(max-width: 768px){
    .floating-whatsapp { bottom: 1.5rem; right: 1.5rem; width: 55px; height: 55px; }
    .floating-whatsapp svg { width: 30px; height: 30px; }
}

/* ===================================
   Single Post Content Fixes
   =================================== */
/* Fix text color for callouts and blocks with light backgrounds */
body.single .has-background:not(.has-text-color),
body.single [class*="-bg-light"],
body.single [style*="background-color: #f"],
body.single [style*="background-color: rgb(24"],
body.single [style*="background-color: rgb(25"],
body.single [style*="background: #f"],
body.single [style*="background: rgb(24"],
body.single [style*="background: rgb(25"] {
    color: #1a1a2e !important;
}

body.single .has-background:not(.has-text-color) *,
body.single [class*="-bg-light"] *,
body.single [style*="background-color: #f"] *,
body.single [style*="background-color: rgb(24"] *,
body.single [style*="background-color: rgb(25"] *,
body.single [style*="background: #f"] *,
body.single [style*="background: rgb(24"] *,
body.single [style*="background: rgb(25"] * {
    color: inherit !important;
}
