/*
Theme Name: IPTV Pro Theme
Description: ثيم ووردبريس احترافي لخدمات IPTV مع تصميم حديث وأنيميشن متقدم
Author: IPTV Pro
Version: 2.0.0
Text Domain: iptv-pro
*/

/* =========================================
   CSS VARIABLES - المتغيرات الموحدة
   ========================================= */
:root {
    /* Colors */
    --primary-purple: #a044ff;
    --secondary-purple: #6a3093;
    --dark-purple: #1a102e;
    --mid-purple: #2d1b5e;
    --light-purple: #5c3a94;
    --accent-purple: #7a48a2;
    --bright-purple: #b054ff;
    --accent-gold: #ffd700;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b8b8b8;
    --text-light: #c0c0c0;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-overlay: rgba(26, 16, 46, 0.88);

    /* Shadows */
    --shadow-primary: rgba(160, 68, 255, 0.4);
    --shadow-hover: rgba(160, 68, 255, 0.6);

    /* Spacing */
    --mobile-padding: 1rem;
    --mobile-section-padding: 4rem 1rem;
    --mobile-hero-height: 100svh;
}

/* =========================================
   GLOBAL RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg,
        var(--dark-purple) 0%,
        var(--mid-purple) 40%,
        #050505 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    max-width: 100vw;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    -webkit-color-scheme: dark;
    color-scheme: dark;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(160, 68, 255, 0.1), transparent 60%);
    z-index: -1;
    animation: pulseBg 10s infinite alternate;
    will-change: opacity, transform;
    pointer-events: none;
}

@keyframes pulseBg {
    0%   { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--mid-purple), var(--primary-purple));
    border-radius: 5px;
    border: 2px solid #050505;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-purple); }

/* =========================================
   INTERACTIVE ELEMENTS
   ========================================= */
button, a, .faq-question, .cta-button, .main-btn, .sub-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 16, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    transition: background 0.3s, backdrop-filter 0.3s;
    will-change: background-color;
}

.nav-container,
.nav-flex {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.logo::before { content: none !important; }
.logo:active { transform: scale(0.95); }
.logo img {
    max-height: clamp(40px, 8vw, 50px);
    height: 45px;
    width: auto;
    display: block;
}

/* Desktop Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary-purple);
    transform: translateY(-2px);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }

/* CTA Nav Button */
.cta-btn-nav {
    background: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple)) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px !important;
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(160, 68, 255, 0.4);
    font-weight: 700 !important;
}
.cta-btn-nav:hover {
    box-shadow: 0 6px 20px rgba(160, 68, 255, 0.6);
    transform: translateY(-2px);
}
.cta-btn-nav::after { display: none !important; }

/* Hamburger Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.menu-toggle:hover {
    background: rgba(160, 68, 255, 0.3);
    transform: scale(1.05);
}

/* Close Button (hidden on desktop) */
.menu-close-btn { display: none; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: var(--mobile-hero-height);
    min-height: 600px;
    padding-top: 160px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(var(--bg-overlay), var(--bg-overlay)),
        url('https://prosmarters.store/wp-content/uploads/2025/08/viasat-blog.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(160, 68, 255, 0.3), transparent 70%);
    animation: pulse 4s ease-in-out infinite alternate;
    will-change: transform, opacity;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0%   { transform: scale(1);    opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 0.3; }
}

.hero-content {
    max-width: min(900px, 90vw);
    z-index: 2;
    position: relative;
    padding: var(--mobile-padding);
    margin: 0 auto;
}

.hero h1,
h1 {
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(to right, #fff 20%, #d4a5ff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.typewriter {
    font-size: clamp(1rem, 3vw, 1.3rem);
    min-height: clamp(40px, 10vw, 60px);
    margin: 1.5rem 0 2.5rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
}

/* Hero Buttons */
.btn-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.main-btn,
.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: clamp(1rem, 3vw, 1.2rem) clamp(2rem, 5vw, 2.5rem);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-purple), var(--bright-purple));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(160, 68, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}
.main-btn::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.main-btn:hover::before,
.cta-button:hover::before,
.main-btn:active::before,
.cta-button:active::before { left: 100%; }
.main-btn:hover,
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(160, 68, 255, 0.6);
}
.main-btn:active,
.cta-button:active { transform: translateY(-1px); }

/* Hero Feature Pills */
.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0.9;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section {
    background: rgba(0,0,0,0.3);
    padding: 3rem 0;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: -50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent-gold);
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.stat-item p {
    color: #ccc;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* =========================================
   GENERAL SECTIONS
   ========================================= */
section {
    padding: 4rem 0;
    overflow: hidden;
}

.section {
    padding: var(--mobile-section-padding);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title,
.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-title h2,
.section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: #aaa;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* =========================================
   GLASS CARD
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
    will-change: transform, box-shadow;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(176, 84, 255, 0.2);
    border-color: rgba(176, 84, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================
   CONTENT ROW (ZIGZAG)
   ========================================= */
.content-row,
.zigzag-row {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-row:nth-child(even),
.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.content-text,
.zigzag-text { flex: 1; }

.content-text h3,
.zigzag-text h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.content-text p,
.zigzag-text p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.content-image,
.zigzag-img {
    flex: 1;
    text-align: center;
}

.content-image img,
.zigzag-img img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.content-image img:hover,
.zigzag-img img:hover { transform: scale(1.02); }

/* =========================================
   FEATURES & SERVICES CARDS GRID
   ========================================= */
.cards-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin: clamp(2rem, 5vw, 4rem) 0;
}

.service-card,
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    transition: transform 0.4s, background 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.service-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before,
.feature-card:hover::before { transform: scaleX(1); }

.service-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px var(--shadow-primary);
    border-color: rgba(160, 68, 255, 0.5);
}

.card-icon,
.f-icon {
    font-size: clamp(2.5rem, 6vw, 3rem);
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}
.service-card:hover .card-icon,
.feature-card:hover .f-icon { transform: rotateY(180deg); }

.service-card h3,
.feature-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p,
.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

/* =========================================
   PRICING SECTION
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.price-card {
    background: rgba(20, 20, 35, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.price-card.featured {
    background: linear-gradient(145deg, rgba(160, 68, 255, 0.1), rgba(0,0,0,0.6));
    border: 2px solid var(--primary-purple);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.price-card:hover { transform: translateY(-5px); }
.price-card.featured:hover { transform: scale(1.05) translateY(-5px); }

.badge {
    background: var(--accent-gold);
    color: #000;
    padding: 8px 20px;
    font-weight: 800;
    border-radius: 20px;
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    font-size: 0.9rem;
    white-space: nowrap;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 1.5rem 0;
    color: #fff;
    line-height: 1;
}
.price span {
    font-size: 1.1rem;
    color: #aaa;
    font-weight: normal;
    vertical-align: middle;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: right;
}
.features-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
    color: #ddd;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.features-list li i {
    color: #4ade80;
    margin-left: 10px;
    font-size: 1.1rem;
    min-width: 20px;
}

.sub-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    font-size: 1rem;
}
.price-card.featured .sub-btn {
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    border: none;
    box-shadow: 0 5px 20px rgba(160, 68, 255, 0.3);
}
.sub-btn:hover {
    background: #fff;
    color: var(--primary-purple);
    border-color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   HOW IT WORKS (STEPS)
   ========================================= */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 200px;
    position: relative;
    text-align: center;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary-purple);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 50px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px var(--primary-purple);
}

.step-item h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
}
.step-item p { color: #aaa; }

/* =========================================
   DEVICES SECTION
   ========================================= */
.devices-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.device-item {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
    min-width: 120px;
    flex: 1;
    transition: transform 0.3s, background 0.3s;
}
.device-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
}
.device-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* =========================================
   CHANNEL SHOWCASE
   ========================================= */
.channel-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100px, 25%), 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
    margin: clamp(1rem, 3vw, 2rem) 0;
}
.channel-showcase img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.channel-showcase img:hover,
.channel-showcase img:active { transform: scale(1.05); }

/* =========================================
   TESTIMONIALS / REVIEWS
   ========================================= */
.testimonials {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: clamp(3rem, 8vw, 6rem) var(--mobile-padding);
    margin: clamp(2rem, 5vw, 4rem) 0;
    background-image: url('https://prosmarters.store/wp-content/uploads/2025/08/3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
}
.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    border-radius: 15px;
}
.testimonials > * { position: relative; z-index: 2; }

.testimonials-grid,
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card,
.review-card {
    background: rgba(26, 16, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    touch-action: manipulation;
    position: relative;
}
.testimonial-card:hover,
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(160, 68, 255, 0.3);
}

.testimonial-avatar {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-primary);
    font-weight: bold;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--mid-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-purple);
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.stars {
    color: #ffd700;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 1rem 0;
}

.testimonial-text,
.review-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-purple);
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) var(--mobile-padding);
}

.faq-item {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
    text-align: right;
}
.faq-item:hover { background: rgba(255,255,255,0.05); border-color: var(--primary-purple); }

.faq-question {
    padding: clamp(1rem, 3vw, 1.5rem);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s, background 0.3s;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.4;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.faq-question:hover,
.faq-question:active {
    background: rgba(160, 68, 255, 0.1);
    color: var(--primary-purple);
}

.faq-answer {
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}
.faq-item.active .faq-answer {
    padding: clamp(1rem, 3vw, 1.5rem);
    max-height: 300px;
}

.faq-item h4 { color: var(--accent-gold); margin-bottom: 0.8rem; font-size: 1.2rem; }
.faq-item p { color: #ccc; font-size: 1rem; margin: 0; line-height: 1.6; }

.faq-icon {
    transition: transform 0.3s ease;
    font-size: clamp(1rem, 3vw, 1.2rem);
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* =========================================
   FEATURE ITEMS (HERO FEATURES GRID)
   ========================================= */
.feature-item {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: var(--glass-bg);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, background 0.3s;
}
.feature-item:hover,
.feature-item:active {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}
.feature-item img {
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}
.feature-item h4 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.feature-item p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}
@keyframes floating {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   FOOTER
   ========================================= */
.footer,
footer {
    background: rgba(0, 0, 0, 0.6);
    padding: clamp(2rem, 5vw, 4rem) var(--mobile-padding) clamp(1rem, 3vw, 2rem);
    margin-top: clamp(2rem, 5vw, 4rem);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    text-align: right;
}

footer img { height: 40px; margin-bottom: 1rem; }
footer p { color: #888; font-size: 0.9rem; margin-bottom: 1rem; }
footer a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
footer a:hover { color: var(--primary-purple); }

.footer-section h3 {
    color: var(--primary-purple);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}
.footer-section p,
.footer-section a {
    color: var(--text-muted);
    line-height: 1.6;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s, padding-left 0.3s, background 0.3s;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    padding: 0.25rem 0;
    border-radius: 4px;
}
.footer-section a:hover,
.footer-section a:focus,
.footer-section a:active {
    color: var(--primary-purple);
    background: rgba(160, 68, 255, 0.1);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: clamp(1rem, 3vw, 2rem);
    margin-top: clamp(1rem, 3vw, 2rem);
    border-top: 1px solid rgba(160, 68, 255, 0.3);
    color: #888;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* =========================================
   WORDPRESS SPECIFIC
   ========================================= */
.wp-block-image { margin: clamp(1rem, 3vw, 2rem) 0; }
.wp-block-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 100%;
    height: auto;
}

.alignwide {
    width: min(100vw, 100%);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 1200px;
}
.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* =========================================
   RTL SUPPORT
   ========================================= */
[dir="rtl"] .nav-menu a::after {
    right: auto;
    left: 50%;
}
[dir="rtl"] .nav-menu a:hover::after {
    left: 1rem;
    right: auto;
}

/* =========================================
   DARK MODE (redundant but kept for safety)
   ========================================= */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --text-muted: #b8b8b8;
        --text-light: #c0c0c0;
    }
}

/* =========================================
   SAFARI BACKDROP-FILTER SUPPORT
   ========================================= */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .glass-card,
    .header,
    .testimonials,
    .service-card,
    .feature-card,
    .testimonial-card,
    .faq-item,
    .stats-section,
    .price-card {
        -webkit-backdrop-filter: blur(12px);
    }
}

/* =========================================
   RESPONSIVE - TABLET (769px - 1024px)
   ========================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid,
    .features-grid { grid-template-columns: repeat(2, 1fr); }

    .testimonials-grid,
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }

    .content-row,
    .zigzag-row { gap: 3rem; }

    .zigzag-row,
    .zigzag-row.reverse { flex-direction: row; }

    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Menu Toggle */
    .menu-toggle { display: block; }

    /* Full Screen Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 16, 46, 0.98), rgba(45, 27, 94, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        padding-bottom: 50px;
        list-style: none;
    }
    .nav-menu.active { transform: translateX(0); }

    .nav-menu a {
        font-size: 1.4rem;
        padding: 1rem 2rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        text-align: center;
        margin: 0;
    }
    .nav-menu a:hover {
        background: rgba(160, 68, 255, 0.2);
        border-color: var(--primary-purple);
        transform: translateY(-2px) scale(1.02);
    }
    .nav-menu a::after { display: none; }

    .cta-btn-nav {
        background: linear-gradient(45deg, var(--accent-gold), #ffb700) !important;
        color: #000 !important;
        font-weight: 800 !important;
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    }

    /* Close Button */
    .menu-close-btn {
        display: flex;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 1.5rem;
        color: #fff;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        transition: background 0.3s, transform 0.3s;
    }
    .menu-close-btn:hover {
        background: rgba(255, 0, 0, 0.2);
        transform: rotate(180deg);
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 90vh;
        background-attachment: scroll;
        text-align: center;
    }

    /* Buttons */
    .btn-wrapper { flex-direction: column; align-items: center; }
    .main-btn, .cta-button { width: 100%; max-width: 300px; padding: 1.2rem; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    /* Cards */
    .cards-grid,
    .features-grid,
    .pricing-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .price-card.featured { transform: scale(1); }
    .price-card, .feature-card { padding: 1.5rem; }

    /* Zigzag / Content Rows */
    .content-row,
    .zigzag-row,
    .zigzag-row.reverse {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
        text-align: center;
    }
    .content-row:nth-child(even) { flex-direction: column; }
    .zigzag-text p { text-align: justify; }
    .zigzag-text h2 { font-size: 1.5rem; }

    /* FAQ */
    .faq { padding: 2rem 1rem; }
    .faq-question { align-items: flex-start; }
    .faq-icon { margin-top: 0.2rem; }

    /* Hero Feature Pills */
    .hero-features { flex-direction: column; gap: 0.8rem; }

    /* Channel Showcase */
    .channel-showcase { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

    /* Section Title */
    .section-title h2 { font-size: 1.8rem; }
}

/* =========================================
   RESPONSIVE - SMALL MOBILE (max 550px)
   ========================================= */
@media (max-width: 550px) {
    .reviews-grid,
    .testimonials-grid,
    .steps-container { grid-template-columns: 1fr; display: grid; }

    .devices-grid { grid-template-columns: repeat(2, 1fr); display: grid; }

    .channel-showcase { grid-template-columns: repeat(2, 1fr); }

    .price { font-size: 2.5rem; }
    .plan-name { font-size: 1.1rem; }
    .f-icon, .card-icon { font-size: 2.5rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   RESPONSIVE - EXTRA SMALL (max 480px)
   ========================================= */
@media (max-width: 480px) {
    .hero { min-height: 500px; }
    .header { padding: 0.5rem 0; }
    .header { padding-top: env(safe-area-inset-top, 0.5rem); }
    .hero { padding-top: calc(env(safe-area-inset-top, 0) + 4rem); }

    .nav-container,
    .nav-flex { padding: 0 1rem; }
}

/* =========================================
   RESPONSIVE - LARGE SCREENS (min 1200px)
   ========================================= */
@media (min-width: 1200px) {
    .section { padding: 8rem 2rem; }
    .nav-container, .nav-flex { padding: 0 2rem; }
    .container { padding: 0 2rem; }
}