/* Pyra AI - Main Stylesheet */
/* RTL Arabic Landing Page */

/* ============================================
   CSS Variables (Color Scheme)
   Modern SaaS / AI Dashboard Style
   Glassmorphism + Soft Gradients
============================================ */
:root {
    /* Primary Blues */
    --primary-color: #046bd2;
    --primary-dark: #045cb4;
    --primary-light: #e8f4fd;
    --primary-lighter: #f0f9ff;

    /* Cyan Accents */
    --cyan: #00d4ff;
    --cyan-light: #7ee8fa;

    /* Purple Glow */
    --purple-glow: #8b5cf6;
    --purple-light: #c4b5fd;

    /* Neutrals */
    --secondary-color: #1e293b;
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;

    /* Status Colors */
    --success-color: #10b981;
    --danger-color: #ef4444;

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

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(4, 107, 210, 0.1);

    /* Shadows with Blue/Purple Glow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(4, 107, 210, 0.1), 0 2px 4px -1px rgba(4, 107, 210, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(4, 107, 210, 0.15), 0 4px 6px -2px rgba(139, 92, 246, 0.05);
    --shadow-xl: 0 20px 40px -5px rgba(4, 107, 210, 0.2), 0 10px 10px -5px rgba(139, 92, 246, 0.08);
    --shadow-glow: 0 0 40px rgba(4, 107, 210, 0.3), 0 0 80px rgba(139, 92, 246, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #046bd2 0%, #045cb4 50%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(180deg, #e8f4fd 0%, #f0f9ff 50%, #ffffff 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

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

/* ============================================
   Theme System - 4 Themes
   Theme 1: Default (الأزرق البنفسجي - الحالي)
   Theme 2: Warm Business (البرتقالي الدافئ)
   Theme 3: Corporate Professional (الأزرق الرسمي)
   Theme 4: Modern Tech (الأسود والأخضر النيون)
============================================ */

/* Theme 2: Warm Business - دافئ ومناسب للأعمال */
body.theme-warm {
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #fef5e7;
    --primary-lighter: #fdf2e6;

    --cyan: #f39c12;
    --cyan-light: #f8c471;

    --purple-glow: #c0392b;
    --purple-light: #e6b0aa;

    --gradient-primary: linear-gradient(135deg, #e67e22 0%, #d35400 50%, #c0392b 100%);
    --gradient-hero: linear-gradient(180deg, #fef5e7 0%, #fdf2e6 50%, #ffffff 100%);

    --shadow-md: 0 4px 6px -1px rgba(230, 126, 34, 0.1), 0 2px 4px -1px rgba(230, 126, 34, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(230, 126, 34, 0.15), 0 4px 6px -2px rgba(192, 57, 43, 0.05);
    --shadow-xl: 0 20px 40px -5px rgba(230, 126, 34, 0.2), 0 10px 10px -5px rgba(192, 57, 43, 0.08);
    --shadow-glow: 0 0 40px rgba(230, 126, 34, 0.3), 0 0 80px rgba(192, 57, 43, 0.1);
    --glass-shadow: 0 8px 32px rgba(230, 126, 34, 0.1);
}

/* Theme 3: Corporate Professional - محترف وكلاسيكي */
body.theme-corporate {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #ecf0f1;
    --primary-lighter: #f4f6f7;

    --cyan: #3498db;
    --cyan-light: #85c1e9;

    --purple-glow: #34495e;
    --purple-light: #aab7b8;

    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #1a252f 50%, #34495e 100%);
    --gradient-hero: linear-gradient(180deg, #ecf0f1 0%, #f4f6f7 50%, #ffffff 100%);

    --shadow-md: 0 4px 6px -1px rgba(44, 62, 80, 0.1), 0 2px 4px -1px rgba(44, 62, 80, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(44, 62, 80, 0.15), 0 4px 6px -2px rgba(52, 73, 94, 0.05);
    --shadow-xl: 0 20px 40px -5px rgba(44, 62, 80, 0.2), 0 10px 10px -5px rgba(52, 73, 94, 0.08);
    --shadow-glow: 0 0 40px rgba(44, 62, 80, 0.3), 0 0 80px rgba(52, 73, 94, 0.1);
    --glass-shadow: 0 8px 32px rgba(44, 62, 80, 0.1);
}

/* Theme 4: Modern Tech - عصري وتقني */
body.theme-tech {
    --primary-color: #00d084;
    --primary-dark: #00b371;
    --primary-light: #e6fcf5;
    --primary-lighter: #f0fdf9;

    --cyan: #00ff9d;
    --cyan-light: #7dffcd;

    --purple-glow: #1a1a2e;
    --purple-light: #4a4a6a;

    --secondary-color: #0f0f1a;
    --text-color: #2d2d3a;

    --gradient-primary: linear-gradient(135deg, #00d084 0%, #00b371 50%, #00ff9d 100%);
    --gradient-hero: linear-gradient(180deg, #e6fcf5 0%, #f0fdf9 50%, #ffffff 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);

    --shadow-md: 0 4px 6px -1px rgba(0, 208, 132, 0.1), 0 2px 4px -1px rgba(0, 208, 132, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0, 208, 132, 0.15), 0 4px 6px -2px rgba(26, 26, 46, 0.05);
    --shadow-xl: 0 20px 40px -5px rgba(0, 208, 132, 0.2), 0 10px 10px -5px rgba(26, 26, 46, 0.08);
    --shadow-glow: 0 0 40px rgba(0, 208, 132, 0.3), 0 0 80px rgba(0, 255, 157, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 208, 132, 0.1);
}

/* Theme transitions - انتقالات سلسة بين الثيمات */
body {
    transition:
        --primary-color 0.4s ease,
        --primary-dark 0.4s ease,
        background-color 0.4s ease;
}

.btn-primary,
.section-badge,
.hero-badge,
.scroll-top,
.feature-icon,
.problem-icon,
.benefit-icon,
.package-icon,
.comparison-icon,
.logo-icon svg,
.progress-fill,
.step-indicator.active {
    transition: all 0.4s ease;
}

/* ============================================
   Skip to Content Link - Accessibility
============================================ */
.skip-to-content {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
    outline: none;
    box-shadow: 0 4px 20px rgba(4, 107, 210, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ============================================
   Container
============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Typography
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
}

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(4, 107, 210, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(4, 107, 210, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover::after {
    opacity: 0.6;
}

.animate-btn {
    position: relative;
    overflow: hidden;
}

.animate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.animate-btn:hover::before {
    left: 100%;
}

/* ============================================
   Section Styles
============================================ */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--secondary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.cta-center {
    text-align: center;
    margin-top: 50px;
}

.arrow-gif {
    width: 80px;
    margin: 0 auto 20px;
    display: block;
}

/* ============================================
   Header - Glassmorphism
============================================ */
.header-logo {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   Language Switcher
============================================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(4, 107, 210, 0.15);
    border-radius: 25px;
    padding: 4px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.lang-btn:hover {
    background: rgba(4, 107, 210, 0.1);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(4, 107, 210, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-switcher {
        padding: 3px;
    }

    .lang-btn {
        min-width: 38px;
        min-height: 38px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Logo Styling - SVG Based
============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

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

/* ============================================
   Hero Section - Gradient Background with Glow
============================================ */
.hero {
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Decorative glow orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(4, 107, 210, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-text .arrow-gif {
    margin: 20px 0;
}

.hero-image {
    position: relative;
}

/* Glassmorphism frame around hero image */
.hero-image::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--glass-border);
    z-index: -1;
}

.hero-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.animate-zoom {
    animation: zoomIn 1s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Background Decorative Shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(4, 107, 210, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatSlow 15s ease-in-out infinite;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: floatSlow 12s ease-in-out infinite reverse;
}

.hero-bg-shapes .shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: floatSlow 18s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

/* Hero Visual - CSS Based Illustration */
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-illustration {
    position: relative;
    padding: 20px;
}

.illustration-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.illustration-card.main-card {
    position: relative;
    z-index: 2;
}

.card-header {
    background: var(--gradient-primary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.card-dots span:first-child {
    background: #ff5f57;
}

.card-dots span:nth-child(2) {
    background: #ffbd2e;
}

.card-dots span:last-child {
    background: #28ca42;
}

.card-title {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.card-content {
    padding: 25px;
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    max-width: 85%;
    animation: fadeInUp 0.5s ease-out;
}

.chat-line.incoming {
    background: var(--gray-100);
    align-self: flex-start;
    border-bottom-right-radius: 4px;
}

.chat-line.outgoing {
    background: var(--gradient-primary);
    color: var(--white);
    align-self: flex-end;
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 4px;
}

.chat-line i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.7;
}

.chat-line span {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Floating Icons around Hero */
.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: floatIcon 4s ease-in-out infinite;
}

.floating-icon i {
    width: 24px;
    height: 24px;
}

.floating-icon.whatsapp {
    top: 10%;
    right: -10px;
    color: #25d366;
    animation-delay: 0s;
}

.floating-icon.instagram {
    bottom: 20%;
    right: -20px;
    color: #e4405f;
    animation-delay: 0.5s;
}

.floating-icon.globe {
    top: 50%;
    left: -25px;
    color: var(--primary-color);
    animation-delay: 1s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ============================================
   Problems Section - Glassmorphism Cards
============================================ */
.problems {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
}

.problems .section-header h2 {
    font-size: 1.6rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 50px;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.problem-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(4, 107, 210, 0.1);
    border-color: rgba(4, 107, 210, 0.2);
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.problem-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-glow));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.problem-card:hover .problem-icon::after {
    opacity: 0.2;
}

.problem-icon i {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
}

.problem-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.problem-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.solution-intro {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-lg);
    color: var(--white);
}

.solution-intro p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.solution-intro .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.solution-intro .btn-primary:hover {
    background: var(--gray-100);
}

/* ============================================
   What Is Section
============================================ */
.what-is {
    background: var(--white);
}

.what-is-content {
    max-width: 1000px;
    margin: 0 auto;
}

.what-is-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.what-is-row.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.what-is-row.reverse .what-is-image {
    order: 2;
}

.what-is-row.reverse .what-is-text {
    order: 1;
}

.what-is-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.what-is-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
}

.formula-section {
    text-align: center;
    padding: 40px;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    margin-top: 50px;
}

.formula-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.formula-image img {
    max-width: 600px;
    margin: 0 auto;
}

/* What Is Visual Cards */
.what-is-visual {
    position: relative;
}

.visual-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.visual-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light), rgba(139, 92, 246, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

.visual-icon i {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
}

.visual-card h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Visual Rings Animation */
.visual-rings {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    position: relative;
}

.ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: expandRing 3s ease-out infinite;
}

.ring:nth-child(1) {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.ring:nth-child(2) {
    width: 100px;
    height: 100px;
    animation-delay: 0.5s;
}

.ring:nth-child(3) {
    width: 140px;
    height: 140px;
    animation-delay: 1s;
}

@keyframes expandRing {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Channel Icons in Visual Card */
.channel-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    position: relative;
}

.channel-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.channel-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.channel-icon i {
    width: 28px;
    height: 28px;
}

.channel-icon.wa {
    color: #25d366;
}

.channel-icon.ig {
    color: #e4405f;
}

.channel-icon.web {
    color: var(--primary-color);
}

.channel-center {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 30px rgba(4, 107, 210, 0.4);
    position: relative;
    z-index: 2;
}

.channel-center i {
    width: 36px;
    height: 36px;
}

/* Connection lines between icons */
.channel-icons::before,
.channel-icons::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-glow));
    opacity: 0.3;
}

.channel-icons::before {
    right: 50%;
    width: 80px;
    margin-right: 40px;
}

.channel-icons::after {
    left: 50%;
    width: 80px;
    margin-left: 40px;
}

/* ============================================
   Features Section - Glassmorphism Cards
============================================ */
.features {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.features::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(4, 107, 210, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(4, 107, 210, 0.15);
    border-color: rgba(4, 107, 210, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(4, 107, 210, 0.2);
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    box-shadow: 0 8px 25px rgba(4, 107, 210, 0.3);
    transform: scale(1.05);
}

.feature-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-box ul {
    padding-right: 20px;
}

.feature-box li {
    position: relative;
    margin-bottom: 10px;
    color: var(--text-light);
    padding-right: 15px;
}

.feature-box li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-glow));
    border-radius: 50%;
}

/* ============================================
   What You Get Section
============================================ */
.what-you-get {
    background: var(--white);
}

.service-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
}

.service-item.reverse {
    grid-template-columns: 1fr 300px;
}

.service-item.reverse .service-image {
    order: 2;
}

.service-item.reverse .service-content {
    order: 1;
}

.service-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-content ul {
    padding-right: 20px;
}

.service-content li {
    position: relative;
    margin-bottom: 12px;
    padding-right: 25px;
    color: var(--text-color);
}

.service-content li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ============================================
   Packages Section - Premium Glassmorphism
============================================ */
.packages {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.packages::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(4, 107, 210, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.packages::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.package-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.package-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl), 0 0 50px rgba(4, 107, 210, 0.15);
}

.package-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(4, 107, 210, 0.2), 0 0 100px rgba(139, 92, 246, 0.1);
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow: var(--shadow-xl), 0 0 80px rgba(4, 107, 210, 0.25), 0 0 120px rgba(139, 92, 246, 0.15);
}

.package-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.package-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.package-header img {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    filter: brightness(0) invert(1);
}

.package-header h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.package-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.package-content {
    padding: 30px;
}

.package-includes {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.package-content > ul {
    margin-bottom: 25px;
}

.package-content > ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.package-content > ul li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

.bonus-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(139, 92, 246, 0.08) 100%);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    border: 1px solid rgba(4, 107, 210, 0.1);
}

.bonus-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

.bonus-section ul li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.bonus-section ul li::before {
    content: '\2605';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.package-note {
    margin-top: 20px;
    padding: 15px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   Who Benefits Section - Glassmorphism Cards
============================================ */
.who-benefits {
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-lighter) 100%);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.benefit-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(4, 107, 210, 0.12);
    border-color: rgba(4, 107, 210, 0.3);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(4, 107, 210, 0.25);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(4, 107, 210, 0.15);
}

.benefit-icon i {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.benefit-card ul {
    text-align: right;
}

.benefit-card li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
    position: relative;
    padding-right: 15px;
}

.benefit-card li::before {
    content: '\2022';
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

/* ============================================
   Comparison Section - Contrast Cards
============================================ */
.comparison {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.comparison-card {
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card.without {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--danger-color);
    box-shadow: var(--shadow-md), 0 0 30px rgba(239, 68, 68, 0.1);
}

.comparison-card.with {
    background: linear-gradient(135deg, rgba(232, 244, 253, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid var(--success-color);
    box-shadow: var(--shadow-md), 0 0 40px rgba(16, 185, 129, 0.15), 0 0 60px rgba(4, 107, 210, 0.1);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.comparison-header img {
    width: 40px;
    height: 40px;
}

.comparison-header h3 {
    font-size: 1.3rem;
}

.comparison-card.without .comparison-header h3 {
    color: var(--danger-color);
}

.comparison-card.with .comparison-header h3 {
    color: var(--success-color);
}

.comparison-card ul li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.comparison-card.without li::before {
    content: '\2717';
    position: absolute;
    right: 0;
    color: var(--danger-color);
    font-weight: bold;
}

.comparison-card.with li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

.urgency-text {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius-lg);
    color: var(--white);
}

.urgency-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.urgency-text .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

/* ============================================
   Timeline & Guarantee Section - Glassmorphism
============================================ */
.timeline-guarantee {
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-lighter) 100%);
}

.timeline-row,
.guarantee-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.timeline-row:last-child,
.guarantee-row:last-child {
    margin-bottom: 0;
}

.timeline-image img,
.guarantee-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.timeline-content h3,
.guarantee-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.guarantee-content ul {
    margin-top: 15px;
}

.guarantee-content li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.guarantee-content li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ============================================
   FAQ Section - Glassmorphism Accordion
============================================ */
.faq {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

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

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md), 0 0 20px rgba(4, 107, 210, 0.08);
}

.faq-item.active {
    border-color: rgba(4, 107, 210, 0.3);
    box-shadow: var(--shadow-md), 0 0 30px rgba(4, 107, 210, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: right;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.faq-question:hover {
    background: rgba(4, 107, 210, 0.03);
}

.faq-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Footer - Dark Gradient
============================================ */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--purple-glow), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(4, 107, 210, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    height: 60px;
    margin: 0 auto 30px;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--gray-300);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    color: var(--gray-300);
    font-size: 0.9rem;
}

/* ============================================
   Scroll to Top Button - Glassmorphism
============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(4, 107, 210, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(4, 107, 210, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
}

/* ============================================
   New Components - Hero Badge & Stats
============================================ */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(4, 107, 210, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(4, 107, 210, 0.2);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Section Badge */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(4, 107, 210, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(4, 107, 210, 0.2);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Check List */
.check-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.check-list li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Formula Boxes */
.formula-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.formula-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    text-align: center;
    min-width: 120px;
}

.formula-box.result {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.formula-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}

.formula-plus,
.formula-equals {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Service Numbers */
.service-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 80px;
}

.service-content h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-content ul {
    list-style: none;
    padding: 0;
}

.service-content li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.service-content li::before {
    content: '→';
    position: absolute;
    right: 0;
    color: var(--primary-color);
}

/* Package Badge */
.package-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.package-card {
    position: relative;
}

/* Button Outline */
.btn-outline {
    display: block;
    width: 100%;
    padding: 14px 32px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-top: 20px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Comparison Icon */
.comparison-icon {
    font-size: 2rem;
}

/* Timeline/Guarantee Icons */
.timeline-icon,
.guarantee-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-light), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 8px 30px rgba(4, 107, 210, 0.15);
}

.timeline-icon::after,
.guarantee-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
}

.timeline-icon i,
.guarantee-icon i {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
}

/* Footer Social */
.footer-tagline {
    color: var(--gray-300);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   Lead Form Section
============================================ */
.lead-form-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
    padding: 80px 0;
}

.lead-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
}

.lead-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.lead-form-header h2 {
    margin-bottom: 10px;
}

.lead-form-header p {
    color: var(--text-light);
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* ============================================
   Form Field Styles (الكلاسات الجديدة الموحدة)
============================================ */
.form-field,
.form-group {
    display: flex;
    flex-direction: column;
}

.form-field.full-width,
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label,
.form-field label,
.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-field .required,
.form-group .required {
    color: var(--danger-color);
}

.form-control,
.form-field input,
.form-field select,
.form-field textarea,
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
    background: var(--white);
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(4, 107, 210, 0.1);
}

.form-control.error,
.form-field input.error,
.form-field select.error,
.form-field textarea.error,
.form-group input.error,
.form-group select.error {
    border-color: var(--danger-color);
}

/* Date input styling for mobile */
.form-control[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 50px;
}

/* Form Error Message */
.form-error,
.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-field.has-error .form-error,
.form-group.has-error .error-message {
    display: block;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.phone-input select {
    width: 130px;
    flex-shrink: 0;
}

.phone-input input {
    flex: 1;
}

.btn-submit {
    grid-column: 1 / -1;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-submit .btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

/* Form Success/Error States */
.form-success,
.form-error {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.form-success h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

.form-error h3 {
    color: var(--danger-color);
    margin-bottom: 10px;
}

/* ============================================
   Chatbot Widget
============================================ */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(4, 107, 210, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(4, 107, 210, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
}

/* When chat is open, hide the toggle button */
.chatbot-widget.open .chatbot-toggle {
    display: none;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.chatbot-widget.open .chatbot-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chatbot-avatar i,
.chatbot-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    stroke: var(--primary-color);
}

.chatbot-header-text h4 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    line-height: 1.5;
    font-size: 0.95rem;
}

.chat-message.bot {
    background: var(--gray-100);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-right-radius: 4px;
}

.chat-message.user {
    background: var(--gradient-primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-left-radius: 4px;
}

.chat-message.typing {
    background: var(--gray-100);
    align-self: flex-start;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

.chatbot-input-wrapper {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.chatbot-form {
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    flex-shrink: 0;
}

.chatbot-send:hover {
    transform: scale(1.05);
}

.chatbot-send svg {
    transform: rotate(180deg);
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: fadeInUp 0.3s ease;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.chat-message.user-message .message-content {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 20px 20px 5px 20px;
}

.chat-message.bot-message .message-content {
    background: var(--gray-100);
    color: var(--text-primary);
    border-radius: 20px 20px 20px 5px;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Form Error State */
.lead-form input.error,
.lead-form select.error,
.lead-form textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* ============================================
   Responsive Design
============================================ */

/* Tablet (max-width: 921px) */
@media (max-width: 921px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    section {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .what-is-row,
    .what-is-row.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .what-is-row.reverse .what-is-image,
    .what-is-row.reverse .what-is-text {
        order: unset;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-item.reverse .service-image,
    .service-item.reverse .service-content {
        order: unset;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .package-card.featured {
        transform: none;
    }

    .package-card.featured:hover {
        transform: translateY(-10px);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .timeline-row,
    .guarantee-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timeline-image,
    .guarantee-image {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Lead Form Tablet */
    .lead-form-wrapper {
        padding: 40px 30px;
    }

    .lead-form {
        grid-template-columns: 1fr;
    }

    .form-field.full-width,
    .form-group.full-width {
        grid-column: span 1;
    }

    /* Hero Stats Tablet */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .stat-item {
        min-width: 120px;
    }

    /* Formula Boxes Tablet */
    .formula-boxes {
        flex-wrap: wrap;
        gap: 15px;
    }

    .formula-plus,
    .formula-equals {
        display: none;
    }

    /* Chatbot Tablet */
    .chatbot-window {
        width: 340px;
        height: 450px;
    }
}

/* Mobile (max-width: 544px) */
@media (max-width: 544px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .problem-card {
        padding: 25px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .service-item,
    .timeline-row,
    .guarantee-row {
        padding: 25px;
    }

    .package-content {
        padding: 20px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .scroll-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    /* Lead Form Mobile */
    .lead-form-section {
        padding: 50px 0;
    }

    .lead-form-wrapper {
        padding: 30px 20px;
        border-radius: var(--border-radius-lg);
    }

    .lead-form-header h2 {
        font-size: 1.4rem;
    }

    .lead-form-header p {
        font-size: 0.95rem;
    }

    .phone-input {
        flex-direction: column;
    }

    .phone-input select {
        width: 100%;
        border-radius: var(--border-radius-md);
        border-bottom-right-radius: var(--border-radius-md);
        border-top-right-radius: var(--border-radius-md);
    }

    .phone-input input {
        border-radius: var(--border-radius-md);
        border-top-left-radius: var(--border-radius-md);
        border-bottom-left-radius: var(--border-radius-md);
    }

    .btn-submit {
        padding: 14px 20px;
    }

    /* Hero Stats Mobile */
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 200px;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* Section Badge Mobile */
    .section-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    /* Chatbot Mobile - نافذة محسّنة بدلاً من fullscreen */
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
    }

    .chatbot-window {
        position: fixed;
        bottom: 80px;
        right: 10px;
        left: 10px;
        width: auto;
        height: calc(100vh - 160px);
        max-height: 500px;
        border-radius: var(--border-radius-lg);
    }

    .chatbot-header {
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        padding: 15px;
    }

    .chatbot-messages {
        padding: 15px;
    }

    .chatbot-input-wrapper {
        padding: 12px;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    }

    .chatbot-input {
        padding: 12px 15px;
    }

    .chatbot-send {
        width: 42px;
        height: 42px;
    }

    /* Check List Mobile */
    .check-list li {
        font-size: 0.95rem;
        padding-right: 28px;
    }

    .check-list li::before {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}

/* ============================================
   Animations
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade {
    animation: fadeIn 0.6s ease-out;
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Spin Animation for Loading */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Section Badge with Icon */
.section-badge i {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 6px;
}

/* Package Icon styling */
.package-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-icon i {
    width: 50px;
    height: 50px;
    color: var(--white);
    opacity: 0.9;
}

/* Footer Logo styling */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon svg path,
.footer-logo .logo-icon svg circle {
    stroke: var(--white);
    fill: none;
}

.footer-logo .logo-icon svg path[fill="url(#logoGradient)"] {
    fill: rgba(255, 255, 255, 0.2);
}

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

.footer-logo .logo-ai {
    background: linear-gradient(135deg, var(--cyan), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Arrow Animation */
.arrow-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 20px auto;
}

.arrow-animation i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    animation: bounceArrow 2s ease-in-out infinite;
}

.arrow-animation i:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.6;
}

.arrow-animation i:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0.3;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Comparison Icon styling */
.comparison-header i {
    width: 32px;
    height: 32px;
}

.comparison-card.without .comparison-header i {
    color: var(--danger-color);
}

.comparison-card.with .comparison-header i {
    color: var(--success-color);
}

/* ============================================
   Scroll Progress Bar
============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(4, 107, 210, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-glow));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* ============================================
   Typing Effect
============================================ */
.typing-text {
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
    padding-right: 8px;
    animation: blink 0.7s infinite;
    display: inline-block;
    min-width: 200px;
    text-align: right;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

/* ============================================
   Live Conversation Replay
============================================ */
.live-chat-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.live-chat-window {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(4, 107, 210, 0.15);
    overflow: hidden;
    border: 1px solid rgba(4, 107, 210, 0.1);
}

.live-chat-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-chat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-chat-avatar i,
.live-chat-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
    stroke: white;
}

.live-chat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.live-chat-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.live-chat-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-chat-status .status-indicator {
    width: 8px;
    height: 8px;
    background: #90EE90;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-chat-messages {
    padding: 20px;
    min-height: 280px;
    max-height: 320px;
    overflow-y: auto;
    background: linear-gradient(180deg, #ECE5DD 0%, #E5DDD5 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease-out;
    position: relative;
}

.live-message.customer {
    background: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.live-message.ai {
    background: #DCF8C6;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.live-message .message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
    text-align: left;
}

.live-message.ai .message-time {
    text-align: right;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-chat-typing {
    padding: 10px 20px;
    background: linear-gradient(180deg, #E5DDD5 0%, #ECE5DD 100%);
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.live-chat-typing.active {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   Notification Stack
============================================ */
.notification-stack {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.notification-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(4, 107, 210, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: notificationSlide 0.5s ease-out;
    border-right: 4px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-xl);
}

.notification-item.fade-out {
    animation: notificationFade 0.5s ease-out forwards;
}

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes notificationFade {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Notification Mobile */
@media (max-width: 768px) {
    .notification-stack {
        left: 10px;
        right: 10px;
        bottom: 140px; /* تم رفعها لتجنب التداخل مع Scroll Top */
        max-width: none;
    }

    .notification-item {
        padding: 12px 14px;
    }

    .notification-text {
        font-size: 0.85rem;
    }
}

/* Live Chat Mobile */
@media (max-width: 768px) {
    .live-chat-container {
        max-width: 100%;
    }

    .live-chat-messages {
        min-height: 220px;
        max-height: 260px;
        padding: 15px;
    }

    .live-message {
        max-width: 90%;
        font-size: 0.9rem;
    }
}

/* ============================================
   Channel Merge Animation
============================================ */
.channel-merge-container {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.merge-channels {
    display: flex;
    gap: 30px;
    position: relative;
}

.merge-channel {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.merge-channel.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.merge-channel.instagram {
    background: linear-gradient(135deg, #E1306C, #833AB4);
}

.merge-channel.messenger {
    background: linear-gradient(135deg, #0084FF, #00C6FF);
}

.merge-channel.website {
    background: linear-gradient(135deg, #6B7280, #9CA3AF);
}

.merge-channel i,
.merge-channel svg {
    width: 28px;
    height: 28px;
    color: white;
    stroke: white;
}

.channel-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.merge-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.merge-inbox {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.merge-inbox i,
.merge-inbox svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke: white;
}

.inbox-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.merge-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.merge-result {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-size: 1.1rem;
    color: var(--success-color);
    font-weight: 600;
}

/* Merge Animation States */
.channel-merge-container.merging .merge-channel {
    transform: translateY(60px) scale(0.5);
    opacity: 0;
}

.channel-merge-container.merging .merge-center {
    opacity: 1;
    transform: scale(1);
}

.channel-merge-container.merged .merge-result {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Personalized Demo Section
============================================ */
.personalized-demo {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.demo-container {
    max-width: 700px;
    margin: 0 auto;
}

.demo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.demo-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    color: var(--text-color);
}

.demo-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.demo-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.demo-tab i,
.demo-tab svg {
    width: 18px;
    height: 18px;
}

.demo-chat-window {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 20px;
}

.demo-chat-header {
    background: var(--gradient-primary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-chat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-chat-avatar i,
.demo-chat-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
    stroke: white;
}

.demo-chat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-chat-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.demo-chat-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-chat-status .status-dot {
    width: 8px;
    height: 8px;
    background: #90EE90;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.demo-chat-messages {
    padding: 20px;
    min-height: 280px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease-out;
}

.demo-message.customer {
    background: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.demo-message.ai {
    background: var(--primary-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--primary-color);
}

.demo-chat-typing {
    padding: 10px 20px;
    background: var(--gray-50);
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.demo-chat-typing.active {
    display: flex;
}

.replay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

/* ============================================
   Sound Toggle Button
============================================ */
.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 90px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.sound-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.sound-toggle i,
.sound-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-light);
    stroke: var(--text-light);
}

.sound-toggle .sound-on {
    display: none;
}

.sound-toggle.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.sound-toggle.active .sound-off {
    display: none;
}

.sound-toggle.active .sound-on {
    display: block;
    color: var(--primary-color);
    stroke: var(--primary-color);
}

/* ============================================
   Mobile Responsive - New Features
============================================ */
@media (max-width: 768px) {
    .channel-merge-container {
        height: 250px;
    }

    .merge-channels {
        gap: 15px;
    }

    .merge-channel {
        width: 50px;
        height: 50px;
    }

    .merge-channel i,
    .merge-channel svg {
        width: 22px;
        height: 22px;
    }

    .merge-inbox {
        width: 65px;
        height: 65px;
    }

    .demo-tabs {
        gap: 8px;
        flex-wrap: wrap;
    }

    .demo-tab {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    /* إظهار النص المختصر على الموبايل بدلاً من إخفائه بالكامل */
    .demo-tab span {
        display: inline;
    }

    .demo-tab i,
    .demo-tab svg {
        width: 18px;
        height: 18px;
    }

    .demo-chat-messages {
        min-height: 220px;
        max-height: 260px;
    }

    .sound-toggle {
        right: 80px;
        width: 40px;
        height: 40px;
    }

    /* Featured Package على الموبايل */
    .package-card.featured {
        transform: none;
        border-width: 3px;
        box-shadow: var(--shadow-xl), 0 0 40px rgba(4, 107, 210, 0.2);
    }

    .package-card.featured:hover {
        transform: translateY(-8px);
    }

    .package-card.featured .package-header {
        position: relative;
    }

    .package-card.featured .package-header::after {
        content: 'الأكثر طلباً';
        position: absolute;
        top: 10px;
        left: 10px;
        background: var(--white);
        color: var(--primary-color);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
    }
}

/* ============================================
   Extra Small Devices (320px - iPhone SE)
============================================ */
@media (max-width: 375px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Typing Text Fix */
    .typing-text {
        min-width: 150px;
        font-size: 0.9rem;
    }

    /* Problem Cards */
    .problem-card {
        padding: 20px;
    }

    .problem-icon {
        width: 60px;
        height: 60px;
    }

    .problem-icon i {
        width: 28px;
        height: 28px;
    }

    /* Feature Boxes */
    .feature-box {
        padding: 25px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
    }

    /* Package Cards */
    .package-header {
        padding: 20px;
    }

    .package-content {
        padding: 15px;
    }

    /* Timeline/Guarantee */
    .timeline-row,
    .guarantee-row {
        padding: 20px;
    }

    .timeline-icon,
    .guarantee-icon {
        width: 80px;
        height: 80px;
    }

    .timeline-icon i,
    .guarantee-icon i {
        width: 35px;
        height: 35px;
    }

    /* Lead Form */
    .lead-form-wrapper {
        padding: 20px 15px;
    }

    .form-control,
    .form-field input,
    .form-field select,
    .form-field textarea,
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
    }

    /* Date & Time pickers mobile-friendly */
    .form-control[type="date"],
    .form-field input[type="date"] {
        min-height: 48px;
    }

    .form-field select,
    .form-group select {
        min-height: 48px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: left 12px center;
        background-repeat: no-repeat;
        background-size: 20px;
        padding-left: 40px;
    }

    /* Floating Elements */
    .scroll-top {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }

    .notification-stack {
        bottom: 120px;
    }

    .notification-item {
        padding: 10px 12px;
    }

    .notification-text {
        font-size: 0.8rem;
    }

    /* Demo Section */
    .demo-tab {
        padding: 8px 10px;
    }

    .demo-tab i,
    .demo-tab svg {
        width: 18px;
        height: 18px;
    }

    /* FAQ */
    .faq-question {
        padding: 15px 18px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 18px 15px;
        font-size: 0.9rem;
    }
}

/* ============================================
   Prefers Reduced Motion - لتعطيل الحركات للمستخدمين
============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .typing-text {
        animation: none;
        border-right-color: transparent;
    }

    .floating-icon,
    .hero-bg-shapes .shape,
    .ring,
    .status-dot,
    .channel-badge {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Multi-Step Popup Form
============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 10;
}

.popup-close:hover {
    background: var(--gray-200);
    color: var(--text-color);
}

/* Progress Bar */
.popup-progress {
    padding: 25px 30px 15px;
    border-bottom: 1px solid var(--gray-200);
}

.progress-bar-wrapper {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 25%;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.step-indicator.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(4, 107, 210, 0.3);
}

.step-indicator.completed {
    background: var(--success-color);
    color: var(--white);
}

/* Form Steps */
.popup-form {
    padding: 25px 30px 30px;
}

.popup-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.popup-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 25px;
}

.step-header h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.step-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Business Type Grid */
.business-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.business-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.business-type-btn i,
.business-type-btn svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.business-type-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.business-type-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.business-type-btn.selected {
    background: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.2);
}

.business-type-btn.selected i,
.business-type-btn.selected svg {
    color: var(--primary-dark);
}

.popup-other-field {
    margin-top: 15px;
}

/* Popup Fields */
.popup-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.popup-field {
    display: flex;
    flex-direction: column;
}

.popup-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.popup-label .required {
    color: var(--danger-color);
}

.popup-input,
.popup-select,
.popup-textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
    background: var(--white);
    width: 100%;
}

.popup-input:focus,
.popup-select:focus,
.popup-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
}

.popup-input.error,
.popup-select.error {
    border-color: var(--danger-color);
}

.popup-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.popup-field.has-error .popup-error {
    display: block;
}

.popup-phone-input {
    display: flex;
    gap: 10px;
}

.popup-phone-input .popup-select {
    width: 130px;
    flex-shrink: 0;
}

.popup-phone-input .popup-input {
    flex: 1;
}

.popup-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Navigation Buttons */
.popup-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.popup-btn i,
.popup-btn svg {
    width: 18px;
    height: 18px;
}

.popup-btn-next,
.popup-btn-submit {
    background: var(--gradient-primary);
    color: var(--white);
    flex: 1;
}

.popup-btn-next:hover,
.popup-btn-submit:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.popup-btn-prev {
    background: var(--gray-100);
    color: var(--text-color);
}

.popup-btn-prev:hover {
    background: var(--gray-200);
}

.popup-btn-skip {
    background: transparent;
    color: var(--text-light);
    padding: 14px 20px;
}

.popup-btn-skip:hover {
    color: var(--text-color);
    background: var(--gray-100);
}

.popup-btn-submit .btn-loading {
    display: none;
}

.popup-btn-submit.loading .btn-text {
    display: none;
}

.popup-btn-submit.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Success Message */
.popup-success {
    padding: 50px 30px;
    text-align: center;
}

.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s ease;
}

.success-animation i,
.success-animation svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-success h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.popup-success p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Mobile Styles for Popup */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .popup-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    }

    .popup-overlay.active .popup-container {
        transform: scale(1) translateY(0);
    }

    .popup-progress {
        padding: 20px 20px 15px;
    }

    .popup-form {
        padding: 20px;
    }

    .business-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .business-type-btn {
        padding: 15px 10px;
    }

    .business-type-btn i,
    .business-type-btn svg {
        width: 24px;
        height: 24px;
    }

    .business-type-btn span {
        font-size: 0.8rem;
    }

    .popup-input,
    .popup-select,
    .popup-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .popup-navigation {
        flex-wrap: wrap;
    }

    .popup-btn {
        padding: 12px 20px;
    }

    .popup-btn-next,
    .popup-btn-submit {
        order: 1;
        flex: 1 1 100%;
    }

    .popup-btn-prev {
        order: 2;
        flex: 1;
    }

    .popup-btn-skip {
        order: 3;
        flex: 1;
    }
}

@media (max-width: 375px) {
    .business-type-btn {
        padding: 12px 8px;
    }

    .business-type-btn span {
        font-size: 0.75rem;
    }

    .step-header h3 {
        font-size: 1.2rem;
    }
}

/* ============================================
   Theme Switcher - زر تغيير الثيم
============================================ */
.theme-switcher-wrapper {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 998;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(4, 107, 210, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(4, 107, 210, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
}

.theme-toggle i,
.theme-toggle svg {
    width: 22px;
    height: 22px;
}

/* Theme Panel */
.theme-panel {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    padding: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.theme-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-panel-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.theme-option:hover {
    border-color: var(--gray-300);
    background: var(--white);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.theme-preview {
    display: flex;
    gap: 4px;
}

.preview-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Theme Switcher Mobile */
@media (max-width: 768px) {
    .theme-switcher-wrapper {
        bottom: 85px;
        left: 20px;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
    }

    .theme-toggle i,
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }

    .theme-panel {
        left: 0;
        min-width: 180px;
        bottom: 55px;
    }

    .theme-option {
        padding: 10px 8px;
    }

    .preview-color {
        width: 16px;
        height: 16px;
    }

    .theme-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .theme-switcher-wrapper {
        bottom: 75px;
        left: 15px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-panel {
        min-width: 160px;
        padding: 12px;
    }

    .theme-options {
        gap: 8px;
    }

    .theme-option {
        padding: 8px 6px;
    }
}

/* ============================================
   Quick Edit Panel - لوحة التعديل السريع
============================================ */

/* Quick Edit Toggle Button */
.quick-edit-toggle {
    position: fixed;
    bottom: 170px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    cursor: pointer;
    display: none; /* مخفي بالافتراضي - يظهر بـ Ctrl+Shift+E */
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(217, 119, 6, 0.2);
    transition: var(--transition);
    z-index: 997;
}

/* إظهار الزر عند التفعيل */
.quick-edit-toggle.visible {
    display: flex;
}

.quick-edit-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5), 0 0 60px rgba(217, 119, 6, 0.3);
}

.quick-edit-toggle i,
.quick-edit-toggle svg {
    width: 22px;
    height: 22px;
}

/* Quick Edit Overlay */
.quick-edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.quick-edit-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Quick Edit Panel */
.quick-edit-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-edit-panel.active {
    right: 0;
}

/* Panel Header */
.quick-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.quick-edit-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
}

.quick-edit-header h3 i,
.quick-edit-header h3 svg {
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

.quick-edit-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.quick-edit-close:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white);
}

.quick-edit-close i,
.quick-edit-close svg {
    width: 18px;
    height: 18px;
}

/* Panel Tabs */
.quick-edit-tabs {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.quick-edit-tabs::-webkit-scrollbar {
    display: none;
}

.quick-edit-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-edit-tab:hover {
    border-color: var(--primary-color);
}

.quick-edit-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.quick-edit-tab i,
.quick-edit-tab svg {
    width: 18px;
    height: 18px;
}

.quick-edit-tab span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Panel Content */
.quick-edit-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.quick-edit-tab-content {
    display: none;
}

.quick-edit-tab-content.active {
    display: block;
}

/* Edit Fields */
.edit-field {
    margin-bottom: 20px;
}

.edit-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.edit-field input,
.edit-field textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    background: var(--white);
    color: var(--text-color);
    transition: var(--transition);
    direction: rtl;
}

.edit-field input:focus,
.edit-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
}

.edit-field textarea {
    resize: vertical;
    min-height: 80px;
}

.char-counter {
    display: block;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: var(--danger-color);
}

/* Edit Field Group */
.edit-field-group {
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-bottom: 20px;
}

.edit-field-group h4 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.edit-field-group .edit-field {
    margin-bottom: 15px;
}

.edit-field-group .edit-field:last-child {
    margin-bottom: 0;
}

/* Panel Footer */
.quick-edit-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.quick-edit-save,
.quick-edit-reset {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.quick-edit-save i,
.quick-edit-save svg,
.quick-edit-reset i,
.quick-edit-reset svg {
    width: 16px;
    height: 16px;
}

.quick-edit-save {
    flex: 1;
}

.last-updated {
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 5px;
}

/* Success/Error Messages */
.quick-edit-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 15px 25px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    z-index: 1002;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-edit-message.show {
    transform: translateX(-50%) translateY(0);
}

.quick-edit-message.success {
    background: var(--success-color);
    color: var(--white);
}

.quick-edit-message.error {
    background: var(--danger-color);
    color: var(--white);
}

/* Quick Edit Link Fields */
.edit-field input[type="url"] {
    direction: ltr;
    text-align: left;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.edit-field input.input-error {
    border-color: var(--danger-color) !important;
    background: rgba(255, 107, 107, 0.1);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.field-hint {
    display: block;
    font-size: 11px;
    color: var(--gray-600);
    margin-top: 4px;
    direction: ltr;
    text-align: left;
}

/* Quick Edit Mobile Styles */
@media (max-width: 768px) {
    .quick-edit-toggle {
        bottom: 155px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    .quick-edit-toggle i,
    .quick-edit-toggle svg {
        width: 20px;
        height: 20px;
    }

    .quick-edit-panel {
        width: 100%;
        right: -100%;
    }

    .quick-edit-header {
        padding: 15px;
    }

    .quick-edit-tabs {
        padding: 10px;
    }

    .quick-edit-tab {
        padding: 8px 12px;
    }

    .quick-edit-content {
        padding: 15px;
    }

    .quick-edit-footer {
        padding: 15px;
    }

    .quick-edit-save,
    .quick-edit-reset {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .quick-edit-toggle {
        bottom: 135px;
        left: 15px;
        width: 40px;
        height: 40px;
    }

    .quick-edit-header h3 {
        font-size: 1rem;
    }

    .quick-edit-tab span {
        display: none;
    }

    .quick-edit-tab {
        padding: 10px;
    }

    .edit-field input,
    .edit-field textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ============================================
   Tracking Panel Styles
============================================ */

.tracking-panel-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.tracking-panel-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

.tracking-panel-header p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
}

.tracking-platform {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.tracking-platform:hover {
    background: rgba(4, 107, 210, 0.05);
    border-color: var(--primary-color);
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-title i,
.platform-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.platform-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Toggle Switch */
.edit-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.edit-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-200);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.edit-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--cyan-accent));
}

.edit-toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Platform Fields */
.platform-fields {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    display: none;
}

.platform-fields.active {
    display: block;
}

/* Checkbox Styles */
.edit-checkbox {
    margin-bottom: 10px;
}

.edit-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--gray-800);
    font-size: 14px;
}

.edit-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* UTM Actions */
.utm-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-sm {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

/* Testing Section */
.tracking-testing {
    background: var(--primary-light);
    border: 1px solid rgba(4, 107, 210, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.tracking-testing h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

.tracking-testing h4 i,
.tracking-testing h4 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.testing-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.testing-results {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #00ff88;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.testing-results.active {
    display: block;
}

.testing-results .result-success {
    color: #00ff88;
}

.testing-results .result-error {
    color: #ff6b6b;
}

.testing-results .result-info {
    color: #00d4ff;
}

.testing-results .result-item {
    margin: 5px 0;
    padding: 3px 0;
}

/* Tracking Actions */
.tracking-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200);
}

/* Mobile Responsive for Tracking */
@media (max-width: 768px) {
    .tracking-platform {
        padding: 12px;
    }

    .platform-title h4 {
        font-size: 14px;
    }

    .utm-actions {
        flex-direction: column;
    }

    .testing-controls {
        flex-direction: column;
    }

    .tracking-actions {
        flex-direction: column;
    }

    .tracking-actions .btn {
        width: 100%;
    }
}

/* ============================================
   Webhooks Tab Styles
============================================ */

.webhooks-panel-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.webhooks-panel-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

.webhooks-panel-header p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
}

.webhook-field-group {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.webhook-field-group:hover {
    border-color: var(--primary-color);
    background: rgba(4, 107, 210, 0.03);
}

.webhook-field-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
}

.webhook-field-group label i,
.webhook-field-group label svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.webhook-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: var(--white);
    color: var(--secondary-color);
    direction: ltr;
    text-align: left;
    transition: all 0.3s;
}

.webhook-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
}

.webhook-input::placeholder {
    color: var(--gray-600);
    font-size: 11px;
}

.webhook-field-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.webhook-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200);
}

.webhook-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.webhook-testing {
    margin-top: 25px;
    padding: 15px;
    background: var(--primary-light);
    border: 1px solid rgba(4, 107, 210, 0.2);
    border-radius: 12px;
}

.webhook-testing h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

.webhook-testing h4 i,
.webhook-testing h4 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.test-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.test-buttons .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.webhook-test-results,
#webhook-test-results {
    padding: 12px;
    background: var(--secondary-color);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff88;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.webhook-test-results.active,
#webhook-test-results.active {
    display: block;
}

.webhook-test-results .result-success,
#webhook-test-results .result-success {
    color: #00ff88;
}

.webhook-test-results .result-error,
#webhook-test-results .result-error {
    color: #ff6b6b;
}

.webhook-test-results .result-info,
#webhook-test-results .result-info {
    color: #00d4ff;
}

/* Mobile Responsive for Webhooks */
@media (max-width: 600px) {
    .webhook-field-group {
        padding: 12px;
    }

    .webhook-input {
        font-size: 12px;
    }

    .webhook-actions {
        flex-direction: column;
    }

    .webhook-actions .btn {
        width: 100%;
    }

    .test-buttons {
        flex-direction: column;
    }

    .test-buttons .btn-sm {
        width: 100%;
    }
}

/* ============================================
   Chatbot Attention Grabber
   لفت انتباه الزائر للـ Chatbot
============================================ */

/* Pulse Animation على زر الشات */
@keyframes chatbot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 107, 210, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(4, 107, 210, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(4, 107, 210, 0);
    }
}

.chatbot-toggle.attention-pulse {
    animation: chatbot-pulse 1.5s ease-in-out infinite;
}

/* Tooltip Message */
.chatbot-attention-tooltip {
    position: fixed;
    bottom: 100px;
    right: 100px;
    background: var(--white);
    color: var(--secondary-color);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 998;
    white-space: nowrap;
}

/* السهم */
.chatbot-attention-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--white);
}

/* عند الظهور */
.chatbot-attention-tooltip.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-attention-tooltip {
        bottom: 85px;
        right: 85px;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ============================================
   WhatsApp Floating Button - زر واتساب عائم
   Position: Left side, above scroll-top
   Z-index: 998 (between scroll-top 999 and chatbot 1000)
============================================ */

/* ── Base Styles ── */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.4),
        0 0 40px rgba(37, 211, 102, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 998;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Show State (added by JS) ── */
.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

/* ── Icon Styles ── */
.whatsapp-float-icon {
    width: 32px;
    height: 32px;
    color: var(--white);
    transition: transform 0.3s ease;
}

/* ── Hover Effect ── */
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow:
        0 8px 30px rgba(37, 211, 102, 0.5),
        0 0 60px rgba(37, 211, 102, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.whatsapp-float:hover .whatsapp-float-icon {
    transform: scale(1.1);
}

/* ── Active/Click Effect ── */
.whatsapp-float:active {
    transform: scale(0.95);
}

/* ── Pulse Animation ── */
@keyframes whatsapp-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 20px rgba(37, 211, 102, 0.4),
            0 0 40px rgba(37, 211, 102, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 6px 25px rgba(37, 211, 102, 0.5),
            0 0 50px rgba(37, 211, 102, 0.3);
    }
}

.whatsapp-float.visible {
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* ── Tooltip Styles ── */
.whatsapp-float-tooltip {
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Tooltip Arrow */
.whatsapp-float-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: var(--secondary-color);
}

/* Show tooltip on hover */
.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ── Responsive - Tablet ── */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 58px;
        height: 58px;
        bottom: 95px;
        left: 20px;
    }

    .whatsapp-float-icon {
        width: 30px;
        height: 30px;
    }

    /* Hide tooltip on tablet */
    .whatsapp-float-tooltip {
        display: none;
    }
}

/* ── Responsive - Mobile ── */
@media (max-width: 544px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 90px;
        left: 15px;
    }

    .whatsapp-float-icon {
        width: 28px;
        height: 28px;
    }
}

/* ── Reduced Motion Preference ── */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none !important;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .whatsapp-float.visible {
        animation: none !important;
    }
}
