/* 
   City Club IPTV - Premium Light Theme 
   Font: Poppins (Headers) + Montserrat (Body)
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    /* Premium Palette */
    --primary: #FF6B00;
    /* Vibrant Orange */
    --secondary: #0056D2;
    /* Trust Blue */
    --dark: #1A1A1A;
    --text-body: #4A4A4A;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border: #E5E5E5;

    /* Variables */
    --header-height: 80px;
    --radius: 12px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e65a00);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #0046b0);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 86, 210, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* Footer Logo Specific */
footer .logo img,
footer img[alt*="Logo"],
footer img[src*="logo"] {
    max-height: 60px !important;
    width: auto;
    display: block;
    margin: 0 auto 20px;
}

.btn-gradient-orange {
    background:linear-gradient(337deg, #ff00eb 0%, #06f 100%);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 85, 0, 0.4);
    border: none;
}

.btn-gradient-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 85, 0, 0.6);
    color: var(--white);
}

.status-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Header & Nav --- */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    padding: 10px 0;
}

.logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* mix-blend-mode removed for cleaner look */
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    padding: 25px 0;
    /* Increase clickable area vertically */
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 25px;
    color: var(--text-body);
    font-weight: 400;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-content a:last-child {
    border: none;
}

.dropdown-content a:hover {
    background: #f9f9f9;
    color: var(--primary);
    padding-left: 30px;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    /* Static background removed for slider */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -80px;
    /* Counteract header padding for full bleed */
    padding-top: 80px;
    background-color: #000;
    /* Fallback */
    overflow: hidden;
}

/* Slider Logic */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Smooth 1.5s cross-fade */
}

.slide.active {
    opacity: 1;
}

/* Overlay for readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5));
    z-index: 1;
    /* Above slider, below content */
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Topmost */
    color: var(--white);
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Features (Glass Cards) --- */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.glass-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
    text-align: center;
    box-shadow: var(--shadow);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.gl-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.gl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(31, 38, 135, 0.15);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.glass-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- Channels & Categories --- */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.channel-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.channel-card:hover {
    transform: translateY(-5px);
}

.card-thumb {
    height: 160px;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.channel-card:hover .card-thumb img {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
}

.channel-list li {
    font-size: 0.9rem;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* --- Plans (Equal Height) --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
    /* Crucial for equal height */
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.15);
}

.plan-header h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-header .price {
    font-size: 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
}

.plan-features {
    flex-grow: 1;
    /* Pushes button to bottom */
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* --- Testimonials (Horizontal on PC, Slider on Mobile) --- */
.reviews-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.review-card {
    flex: 0 0 100%;
    /* Mobile: 1 card width */
    min-width: 300px;
    scroll-snap-align: center;
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

@media (min-width: 992px) {
    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* Desktop: 3 cols side-by-side */
        overflow: visible;
    }

    .review-card {
        flex: auto;
    }
}

.review-stars {
    color: #FFC107;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 20px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--dark);
}

/* --- Support/Contact Grid --- */
.support-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.support-sidebar {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input,
textarea,
select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    transition: 0.3s;
    background: #FAFAFA;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* --- WhatsApp Widget --- */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-bubble {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    animation: bounce 2s infinite;
}

.notification-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white);
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* --- Mobile Responsive --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    margin-left: 15px;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 992px) {

    .glass-grid,
    .grid-3,
    .support-container,
    .form-grid {
        grid-template-columns: 1fr;
        /* Stack everything */
    }
}

@media (max-width: 992px) {

    /* 1. Global Reset & Overflow */
    body,
    html {
        overflow-x: hidden !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .container {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. Header & Nav */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
        display: none;
        text-align: center;
        z-index: 9999;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu ul {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .nav-menu a {
        display: block !important;
        padding: 15px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
    }

    .mobile-toggle {
        display: block !important;
        padding: 10px;
    }

    .header-actions .btn {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }

    .mobile-hide {
        display: block !important;
    }

    /* 3. Hero Section Fixes */
    #hero {
        padding-top: 100px !important;
        height: auto !important;
        min-height: 60vh !important;
        /* Adjusted for better phone fit */
        padding-bottom: 50px !important;
        text-align: center !important;
    }

    .hero-content {
        margin: 0 auto !important;
        width: 100% !important;
    }

    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 30px !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 !important;
    }

    /* 4. Force Vertical Stack on Rows/Grids */
    .pricing-grid,
    .support-container,
    .form-grid,
    .glass-grid,
    .grid-3,
    .channel-grid,
    .row,
    .features-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* 5. Image Scaling */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        width: 100% !important;
        /* Force fit */
    }

    /* 6. Card & Widget Fixes */
    .pricing-card,
    .glass-card,
    .channel-card,
    .review-card {
        max-width: 100% !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }

    .pricing-card {
        margin-bottom: 20px !important;
    }

    .reviews-grid {
        display: flex !important;
        overflow-x: auto !important;
        flex-direction: row !important;
        /* Keep slider for reviews */
        scroll-snap-type: x mandatory;
        gap: 20px !important;
        padding-bottom: 20px;
    }

    .review-card {
        min-width: 85vw !important;
        flex: 0 0 85vw !important;
    }

    .whatsapp-widget {
        bottom: 20px !important;
        right: 20px !important;
        flex-direction: column-reverse !important;
        align-items: flex-end !important;
    }

    .whatsapp-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 28px !important;
    }

    .notification-bubble {
        display: none !important;
    }
}

/* --- Tawk.to Visibility Fixes --- */
/* Ensure widget is always on top (Z-Index War Winner) */
div[class*="tawk-"],
iframe[title*="chat"],
.tawk-min-container {
    z-index: 2147483647 !important;
    /* Maximum possible Z-Index */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
}

/* Specific fix for the Tawk container if ID changes */
#tawk-1jgsoqlue {
    z-index: 2147483647 !important;
}

/* Prevent parent clipping */
body,
html {
    overflow-x: hidden;
    /* Standard setting, but ensure no overflow-y hides it */
}

/* Fix for potential container conflicts */
.widget-visible {
    display: block !important;
}

/* Ensure it's not hidden on specific screen sizes unless intended */
@media print {
    #tawk-1jgsoqlue {
        display: none !important;
    }
}

/* --- WhatsApp Widget Repositioning (Left Side) --- */
/* Global: Move to left, flip order so button is in corner */
.whatsapp-widget {
    left: 30px !important;
    right: auto !important;
    flex-direction: row-reverse !important;
}

/* Flip arrow to point left */
.notification-bubble::after {
    right: auto !important;
    left: -8px !important;
    border-width: 8px 8px 8px 0 !important;
    border-color: transparent var(--white) transparent transparent !important;
}

/* Mobile: Ensure it sticks to left */
@media (max-width: 992px) {
    .whatsapp-widget {
        left: 20px !important;
        right: auto !important;
        align-items: flex-start !important;
    }
}