/* =========================================================
   IPTV Stream Player – Main Stylesheet
   ========================================================= */

/* -------------------------------------------------------
   0. CSS Custom Properties
------------------------------------------------------- */
:root {
    --color-primary:      #2872fa;
    --color-primary-dark: #1559ed;
    --color-accent:       #fcb900;
    --color-accent-dark:  #e5a800;
    --color-success:      #00d084;
    --color-bg:           #0d1b2a;
    --color-bg-card:      #12263a;
    --color-bg-card2:     #162f47;
    --color-bg-light:     #f2f5f7;
    --color-text:         #ffffff;
    --color-text-muted:   #8fafc8;
    --color-text-dark:    #1a2e3f;
    --color-border:       rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(40, 114, 250, 0.3);
    --gradient-primary:   linear-gradient(135deg, #2872fa 0%, #1559ed 100%);
    --gradient-hero:      linear-gradient(135deg, #0d1b2a 0%, #162f47 50%, #0d2640 100%);
    --gradient-card:      linear-gradient(145deg, #12263a 0%, #162f47 100%);
    --radius-sm:          8px;
    --radius-md:          14px;
    --radius-lg:          22px;
    --radius-xl:          32px;
    --shadow-sm:          0 2px 8px rgba(0,0,0,0.25);
    --shadow-md:          0 8px 32px rgba(0,0,0,0.35);
    --shadow-lg:          0 20px 60px rgba(0,0,0,0.45);
    --shadow-glow:        0 0 30px rgba(40,114,250,0.25);
    --font-main:          'Cairo', 'Segoe UI', system-ui, sans-serif;
    --transition:         0.25s ease;
    --header-h:           72px;
}

/* -------------------------------------------------------
   1. Reset & Base
------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.rtl { direction: rtl; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-accent); }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-text);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------
   2. Layout helpers
------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-pad {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-pad-sm {
    padding-top: 50px;
    padding-bottom: 50px;
}

.text-center { text-align: center; }
.text-start  { text-align: right; }

/* -------------------------------------------------------
   3. Typography
------------------------------------------------------- */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.section-title span {
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.label-tag {
    display: inline-block;
    background: rgba(40, 114, 250, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(40, 114, 250, 0.3);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

/* -------------------------------------------------------
   4. Buttons
------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    opacity: 0;
    transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(40,114,250,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(40,114,250,0.55);
    color: #fff;
}

.btn-accent {
    background: var(--color-accent);
    color: #1a2e3f;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(252,185,0,0.4);
}
.btn-accent:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(252,185,0,0.5);
    color: #1a2e3f;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    color: var(--color-text);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
    display: flex;
}

/* -------------------------------------------------------
   5. Header
------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-h);
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

/* Brand / Logo */
.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo {
    max-height: 45px;
    width: auto;
}

.site-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
}

.site-name:hover { color: var(--color-primary); }

.logo-icon {
    color: var(--color-primary);
    font-size: 1.4rem;
}

/* Nav */
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li a {
    display: block;
    padding: 8px 14px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
    color: var(--color-primary);
    background: rgba(40,114,250,0.1);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-text);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.cart-link:hover {
    color: var(--color-primary);
    background: rgba(40,114,250,0.1);
}

.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-accent);
    color: #1a2e3f;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.cart-count.has-items { opacity: 1; }

.header-cta { padding: 10px 22px; font-size: 0.9rem; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------
   6. Hero Section
------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: var(--color-primary);
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 10%;
    background: #9b51e0;
    opacity: 0.2;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 40%;
    background: var(--color-accent);
    opacity: 0.12;
}

.hero-grid {
    display: grid;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    padding: 80px 0 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40,114,250,0.15);
    border: 1px solid rgba(40,114,250,0.35);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #7ab2ff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-title .highlight-accent {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* -------------------------------------------------------
   7. Features / Benefits
------------------------------------------------------- */
.features-section {
    background: var(--color-bg);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--color-border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 0.05; }

.feature-card > * { position: relative; z-index: 1; }

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(40,114,250,0.15);
    border: 1px solid rgba(40,114,250,0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 0;
}

/* Large feature cards */
.features-big-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 80px;
}

.features-big-grid.reverse {
    direction: ltr;
}

.features-big-grid.reverse .features-big-text { direction: rtl; }

.features-big-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.features-big-image img {
    width: 100%;
    object-fit: cover;
}

.features-big-image-placeholder {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    min-height: 320px;
}

.features-big-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.features-big-text p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.features-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.features-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.features-checklist li::before {
    content: '✓';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(0, 208, 132, 0.15);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 2px;
}

/* -------------------------------------------------------
   8. Pricing Section
------------------------------------------------------- */
.pricing-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, #0a1726 100%);
    position: relative;
}

.pricing-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--color-border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    position: relative;
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.pricing-card.featured {
    border-color: var(--color-primary);
    background: linear-gradient(145deg, #1a2f4a 0%, #162f47 100%);
    box-shadow: 0 0 0 1px rgba(40,114,250,0.4), var(--shadow-glow);
    transform: scale(1.04);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -1px;
    right: 28px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 16px 7px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    letter-spacing: 0.02em;
}

.pricing-badge.badge-accent {
    background: var(--color-accent);
    color: #1a2e3f;
}

.pricing-duration {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.pricing-price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-text);
    line-height: 1;
}

.pricing-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.pricing-divider {
    height: 1px;
    background: var(--color-border);
    margin: 1.25rem 0;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.pricing-features li .check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(0,208,132,0.15);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.pricing-features li .check-gold {
    background: rgba(252,185,0,0.15);
    color: var(--color-accent);
}

.pricing-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.pricing-guarantee svg { color: var(--color-success); }

/* -------------------------------------------------------
   9. How It Works
------------------------------------------------------- */
.how-section {
    background: var(--color-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    right: 12%;
    left: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-border), var(--color-border), transparent);
    z-index: 0;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-glow);
}

.step-number {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(40,114,250,0.4);
    flex-shrink: 0;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* -------------------------------------------------------
   10. Devices Section
------------------------------------------------------- */
.devices-section {
    background: linear-gradient(180deg, #0a1726 0%, var(--color-bg) 100%);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.device-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    gap: 12px;
}

.device-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-glow);
}

.device-icon {
    font-size: 2.5rem;
}

.device-card span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------
   11. Testimonials
------------------------------------------------------- */
.testimonials-section {
    background: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-glow);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
    font-family: serif;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1rem;
}

.star { color: var(--color-accent); font-size: 1rem; }

.testimonial-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
}

.testimonial-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------
   12. FAQ Section
------------------------------------------------------- */
.faq-section {
    background: linear-gradient(180deg, var(--color-bg) 0%, #0a1726 100%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.open {
    border-color: var(--color-border-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
    gap: 16px;
    transition: color var(--transition);
}

.faq-question:hover { color: var(--color-primary); }
.faq-item.open .faq-question { color: var(--color-primary); }

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(40,114,250,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: rgba(40,114,250,0.2);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.85;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.faq-item.open .faq-answer { display: block; }

/* -------------------------------------------------------
   13. CTA Banner
------------------------------------------------------- */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 20px;
}

.cta-inner h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-inner p {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* -------------------------------------------------------
   14. Page Templates
------------------------------------------------------- */
/* Generic page */
.page-header {
    background: linear-gradient(135deg, #0d1b2a 0%, #162f47 100%);
    padding: 120px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-content h2 { margin: 2rem 0 1rem; }
.page-content p  { color: var(--color-text-muted); }
.page-content ul, .page-content ol {
    list-style: initial;
    padding-right: 1.5rem;
    color: var(--color-text-muted);
}

/* Contact page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
    padding: 60px 0 80px;
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: all var(--transition);
}

.contact-method:hover {
    border-color: var(--color-border-light);
    transform: translateX(-3px);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    background: rgba(40,114,250,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-method-label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.contact-method-value {
    font-weight: 700;
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

/* -------------------------------------------------------
   15. Forms
------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(40,114,250,0.15);
}

.form-control::placeholder { color: rgba(143,175,200,0.5); }

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

/* -------------------------------------------------------
   16. Posts / Blog
------------------------------------------------------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-glow);
}

.post-card__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.03); }

.post-card__body { padding: 24px; }

.post-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}
.post-card__title a { color: var(--color-text); }
.post-card__title a:hover { color: var(--color-primary); }

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
    transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* -------------------------------------------------------
   17. 404 / No Results
------------------------------------------------------- */
.error-404,
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* -------------------------------------------------------
   18. Utilities
------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-muted   { color: var(--color-text-muted); }

.bg-card { background: var(--gradient-card); }
.border-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); }

.divider {
    height: 1px;
    background: var(--color-border);
    margin: 3rem 0;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* -------------------------------------------------------
   19. Footer
------------------------------------------------------- */
.site-footer {
    background: #080f18;
    border-top: 1px solid var(--color-border);
}

.footer-widgets {
    padding: 72px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.footer-logo-text span { color: var(--color-primary); }

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.footer-contact-info a:hover { color: var(--color-accent); }

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover { color: var(--color-text); }

.footer-links a::before {
    content: '›';
    color: var(--color-primary);
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.copyright, .payment-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* -------------------------------------------------------
   20. Notifications / WooCommerce messages
------------------------------------------------------- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: var(--radius-md) !important;
    border-top: none !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.woocommerce-message {
    background: rgba(0,208,132,0.1) !important;
    border: 1px solid rgba(0,208,132,0.25) !important;
    color: var(--color-success) !important;
}

.woocommerce-error {
    background: rgba(255,80,80,0.1) !important;
    border: 1px solid rgba(255,80,80,0.25) !important;
    color: #ff5050 !important;
}

.woocommerce-info {
    background: rgba(40,114,250,0.1) !important;
    border: 1px solid rgba(40,114,250,0.25) !important;
    color: #7ab2ff !important;
}

/* -------------------------------------------------------
   21. Responsive
------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .features-big-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .section-pad     { padding-top: 60px; padding-bottom: 60px; }
    .section-pad-sm  { padding-top: 36px; padding-bottom: 36px; }

    /* Header mobile */
    .primary-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        left: 0;
        background: rgba(13,27,42,0.98);
        backdrop-filter: blur(16px);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        z-index: 999;
        border-bottom: 1px solid var(--color-border);
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-menu li a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .menu-toggle { display: flex; }
    .header-cta  { display: none; }

    /* Hero */
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group .btn { justify-content: center; }

    .hero-stats { gap: 24px; }

    /* Pricing */
    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    /* Steps */
    .steps-grid::before { display: none; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Contact form */
    .contact-form-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}
