.top-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.top-bar.is-condensed {
    padding: 1rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px);
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.9) 50%, rgba(22, 33, 62, 0.95) 100%);
}

.top-bar.is-condensed .logo {
    font-size: 1rem;
}

.top-bar.is-condensed .tagline {
    font-size: 0.75rem;
}

.top-bar.is-condensed .brand {
    gap: 0.2rem;
}

.top-bar.is-condensed nav a {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.top-bar.is-condensed .cta-btn {
    padding: 0.6rem 1.6rem;
    font-size: 0.75rem;
    min-width: 120px;
}

.top-bar.is-condensed .language-switcher select {
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: 100px;
}
/* ═══════════════════════════════════════════════════════════
   🎨 CSS VARIABLES - Design System
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Colors - Enhanced Palette */
    --primary: #0f172a;
    --primary-dark: #020617;
    --primary-light: #1e293b;
    --secondary: #d4af37;
    --secondary-dark: #b8941f;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-light: #60a5fa;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --text: #0f172a;
    --text-light: #475569;
    --muted: #64748b;
    --card-bg: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.15);
    --shadow: var(--shadow-lg);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius: var(--radius-lg);
    
    /* Typography */
    --body-font: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --heading-font: 'Montserrat', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --logo-font: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Mobile-specific variables */
    --mobile-text-xs: 0.8rem;
    --mobile-text-sm: 0.9rem;
    --mobile-text-base: 1rem;
    --mobile-text-lg: 1.1rem;
    --mobile-text-xl: 1.25rem;
    --mobile-text-2xl: 1.5rem;
    --mobile-text-3xl: 2rem;
    
    --mobile-space-xs: 0.5rem;
    --mobile-space-sm: 0.75rem;
    --mobile-space-base: 1rem;
    --mobile-space-lg: 1.5rem;
    --mobile-space-xl: 2rem;
    --mobile-space-2xl: 3rem;
    
    --touch-target-min: 44px;
    --touch-target-comfortable: 48px;
    --touch-target-large: 52px;
}

/* ═══════════════════════════════════════════════════════════
   ✨ ANIMATIONS - Keyframes
   ═══════════════════════════════════════════════════════════ */
@keyframes floaty {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   🎯 GLOBAL RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 88% 12%, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 50%),
        radial-gradient(circle at 72% 85%, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0) 55%),
        radial-gradient(circle at 28% 82%, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0) 50%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 45%, #f1f5f9 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 45%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 70% 55%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
        opacity: 0.9;
    }
    66% {
        transform: translate(-15px, 15px) scale(0.95);
        opacity: 0.95;
    }
}

body::after {
    content: "";
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30px, 30px) scale(1.1);
        opacity: 0.7;
    }
}



/* ═══════════════════════════════════════════════════════════
   🎯 MAIN CONTENT POSITIONING
   ═══════════════════════════════════════════════════════════ */
main {
    position: relative;
    z-index: 1;
}

header {
    position: relative;
    z-index: 100;
}

/* ═══════════════════════════════════════════════════════════
   📝 TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
.section-title,
.logo {
    font-family: var(--heading-font);
    letter-spacing: 0.015em;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   🔗 LINKS
   ═══════════════════════════════════════════════════════════ */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   📦 LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════ */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.flex {
    display: flex;
    gap: 1.5rem;
}

.flex.between {
    justify-content: space-between;
}

.flex.center {
    align-items: center;
}

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

.grid {
    display: grid;
    gap: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER / TOP BAR
   ═══════════════════════════════════════════════════════════ */
.top-bar {
    background: linear-gradient(135deg, 
                rgba(15, 23, 42, 0.98) 0%, 
                rgba(30, 41, 59, 0.95) 50%, 
                rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
                0 1px 0 rgba(255, 255, 255, 0.1) inset;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 120;
    padding: 1.2rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(59, 130, 246, 0.05) 50%, 
                transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
    pointer-events: none;
}

.top-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--accent) 50%, 
                transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}

@keyframes headerShine {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(100%);
        opacity: 1;
    }
}

.top-bar .container {
    position: relative;
    z-index: 1;
}

.header-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.header-left {
    justify-self: start;
}

.header-right {
    display: none; /* مخفي لأننا حذفنا الزر */
}

.header-nav {
    display: flex;
    justify-content: center;
}

.brand {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.brand::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    animation: barGrow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    height: 0;
    opacity: 0;
}

@keyframes barGrow {
    0% {
        height: 0;
        opacity: 0;
        transform: translateY(-50%) scaleY(0);
    }
    100% {
        height: 70%;
        opacity: 1;
        transform: translateY(-50%) scaleY(1);
    }
}

.logo {
    font-family: var(--logo-font);
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.2;
    animation: logoEntrance 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotateX(90deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Removed problematic ::before that was causing logo to disappear */

.logo:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoPulse 0.6s ease-in-out;
}

@keyframes logoPulse {
    0% {
        transform: translateY(-2px) scale(1.02);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
    }
    100% {
        transform: translateY(-2px) scale(1.02);
    }
}

.tagline {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.9);
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding-left: 0.8rem;
    animation: taglineSlideIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
    opacity: 0;
    transform: translateX(-30px);
    white-space: nowrap;
}

.tagline::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.6rem;
    animation: dotPulse 2s ease-in-out infinite;
}

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

@keyframes taglineSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.tagline::before {
    content: "•";
    position: absolute;
    left: -0.3rem;
    color: #ffffff;
    font-weight: bold;
}

.tagline:hover {
    color: #ffffff;
    transform: translateX(2px);
}

nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    position: relative;
    justify-content: center;
}

nav a {
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    animation: navFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

nav a:hover::before {
    opacity: 1;
}

nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: var(--accent);
}

@keyframes navFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

nav a:nth-child(1) { animation-delay: 0.6s; }
nav a:nth-child(2) { animation-delay: 0.7s; }
nav a:nth-child(3) { animation-delay: 0.8s; }
nav a:nth-child(4) { animation-delay: 0.9s; }



.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    margin-right: 2rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3), 
                0 4px 12px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    min-width: 160px;
    text-align: center;
    animation: ctaBounce 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.2s forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    cursor: pointer;
}

@keyframes ctaBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotateX(90deg);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-8px) scale(1.1) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
}

.cta-btn::after {
    content: "→";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 1.1rem;
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn:hover::after {
opacity: 1;
transform: translateY(-50%) translateX(4px);
}

.cta-btn:hover {
transform: translateY(-3px) scale(1.05);
box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4), 
            0 8px 20px rgba(59, 130, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.cta-btn:active {
transform: translateY(-1px) scale(1.02);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}


.hero {
    padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(5rem, 10vw, 7rem);
    background:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 60%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.12) 0%, rgba(59, 130, 246, 0.08) 40%, rgba(248, 250, 252, 0.92) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: heroBlobFloat 22s ease-in-out infinite;
    mix-blend-mode: screen;
}

.hero-blob--primary {
    width: clamp(280px, 45vw, 520px);
    height: clamp(280px, 45vw, 520px);
    top: -28%;
    right: -12%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0) 70%);
}

.hero-blob--secondary {
    width: clamp(220px, 40vw, 460px);
    height: clamp(220px, 40vw, 460px);
    top: -18%;
    left: -12%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 72%);
    animation-duration: 28s;
    animation-direction: reverse;
}

.hero-blob--tertiary {
    width: clamp(200px, 35vw, 420px);
    height: clamp(200px, 35vw, 420px);
    top: -10%;
    right: 25%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0) 75%);
    animation-duration: 30s;
}

@keyframes heroBlobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-4%, 6%) scale(1.05);
    }
    50% {
        transform: translate(6%, -4%) scale(0.95);
    }
    75% {
        transform: translate(-3%, -6%) scale(1.08);
    }
}

.hero-marquee {
    position: absolute;
    top: clamp(0.5rem, 2vw, 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 1000px);
    height: clamp(2.4rem, 4vw, 3rem);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(26px);
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.28), rgba(59, 130, 246, 0.18));
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    opacity: 0.9;
    isolation: isolate;
}

.hero-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(15, 23, 42, 0.3) 0%, 
        transparent 15%, 
        transparent 85%, 
        rgba(15, 23, 42, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.hero-marquee__track {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    animation: heroMarqueeScroll 35s linear infinite;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    height: 100%;
}

.hero-marquee__item {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.4vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.92);
}

.hero-marquee__separator {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.45);
    transform: translateY(-0.05rem);
}

@keyframes heroMarqueeScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.hero::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, 
                rgba(59, 130, 246, 0.08) 0%, 
                rgba(96, 165, 250, 0.04) 40%, 
                transparent 70%);
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
    animation: heroFloat 20s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, 
                rgba(212, 175, 55, 0.06) 0%, 
                rgba(212, 175, 55, 0.03) 40%, 
                transparent 70%);
    filter: blur(50px);
    opacity: 0.5;
    pointer-events: none;
    animation: heroFloat 25s ease-in-out infinite reverse;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 4.5rem);
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
}

.hero-text > * {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-text > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-text > *:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-text > *:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-text > *:nth-child(4) {
    animation-delay: 0.55s;
}

.hero-text > *:nth-child(5) {
    animation-delay: 0.7s;
}

.hero-text > *:nth-child(6) {
    animation-delay: 0.85s;
}

.hero-text > *:nth-child(7) {
    animation-delay: 1s;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-keywords {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.hero-rotator {
    position: relative;
    min-width: 180px;
    display: inline-block;
    animation: rotatorPulse 6s ease-in-out infinite;
}

@keyframes rotatorPulse {
    0%, 100% {
        opacity: 0.9;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.hero-text h1 {
    font-size: clamp(2.3rem, 5vw, 3.25rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-text p {
    color: rgba(17, 17, 17, 0.72);
    font-size: 1.08rem;
}

.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.75);
    background: rgba(0, 0, 0, 0.06);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    width: fit-content;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
}

.hero-badge {
    background: rgba(0, 0, 0, 0.08);
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 0.65rem 1.2rem;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.hero-rating {
    display: flex;
    flex-direction: column;
    color: rgba(17, 17, 17, 0.6);
}

.hero-rating strong {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.btn {
    display: inline-flex;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
}

.btn.primary:hover {
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.3);
}

.btn.secondary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.btn.ghost {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-media {
    display: grid;
    gap: 2rem;
    align-content: start;
    position: relative;
}

.hero-visual {
    position: relative;
    border-radius: calc(var(--radius) + 8px);
    overflow: hidden;
    box-shadow: 0 45px 75px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Removed white border frame */

.hero-visual::after {
    content: "";
    position: absolute;
    inset: -25% -5% 45% 55%;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.35), transparent 65%);
    filter: blur(18px);
    transform: rotate(-8deg);
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius) + 4px);
    mix-blend-mode: lighten;
    animation: floaty 6s ease-in-out infinite;
}

.hero-visual img:hover {
    transform: scale(1.02);
}

.visual-glow {
    position: absolute;
    inset: -30% 10% 20% -25%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 65%);
    filter: blur(52px);
    opacity: 0.9;
    pointer-events: none;
}

.hero-card {
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(2rem, 4vw, 2.75rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -25% -10% 45% 30%;
    background: linear-gradient(140deg, rgba(17, 17, 17, 0.12), transparent 65%);
    filter: blur(26px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.lead-form {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.5rem;
}

.lead-form label {
    font-weight: 600;
}

.lead-form input,
.lead-form select {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.lead-form input:focus,
.lead-form select:focus {
    outline: 2px solid rgba(0, 0, 0, 0.2);
}

.w-100 {
    width: 100%;
    justify-content: center;
}

.trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1.1rem);
    color: rgba(17, 17, 17, 0.7);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.trust li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0.6));
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.08);
}

.trust li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.trust li:hover::after {
    opacity: 1;
}

.stats {
    background:
        radial-gradient(circle at 18% 15%, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 82% 20%, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(145deg, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.92) 45%, rgba(241, 245, 249, 0.96) 100%);
    padding: clamp(5rem, 8vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    inset: 10% 12% 12%;
    border-radius: calc(var(--radius-xl) * 1.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
}

.gov-showcase {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.gov-intro {
    max-width: 760px;
    margin: 0 auto 1.85rem;
    text-align: center;
    display: grid;
    gap: 1.1rem;
}

.gov-eyebrow {
    display: inline-flex;
    align-self: center;
    padding: 0.45rem 1.4rem;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.12);
    color: rgba(17, 17, 17, 0.66);
    backdrop-filter: blur(12px);
}

.gov-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin: 0 auto 2.25rem;
    max-width: 960px;
}

.gov-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: rgba(7, 7, 7, 0.88);
    color: #f5f5f5;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.gov-chip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 45%);
    opacity: 0;
    transform: translateX(-30%);
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.gov-chip::after {
    content: "";
    position: absolute;
    inset: -40% -10% 50% 35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    filter: blur(20px);
    opacity: 0.4;
    mix-blend-mode: screen;
    animation: chipPulse 6s ease-in-out infinite;
}

.gov-chip:hover::before {
    opacity: 1;
    transform: translateX(15%);
}

@keyframes chipPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.35;
    }
    50% {
        transform: rotate(12deg) scale(1.12);
        opacity: 0.55;
    }
}

.gov-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.06), transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 0, 0, 0.05), transparent 55%);
    pointer-events: none;
}

.gov-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gov-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--radius) + 8px);
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.gov-card.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.gov-media {
    position: relative;
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gov-media img {
    width: 100%;
    display: block;
    border-radius: inherit;
    animation: floaty 7s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.gov-card:hover .gov-media img {
    transform: scale(1.05) rotate(-1deg);
}

.gov-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
    filter: blur(32px);
    opacity: 0.7;
    pointer-events: none;
}

.gov-highlights {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.gov-highlights li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(17, 17, 17, 0.75);
}

.gov-highlights .glyph {
    font-size: 1.25rem;
    animation: glyphBounce 2.6s ease-in-out infinite;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.75rem;
}

.stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08),
                0 4px 12px rgba(15, 23, 42, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15),
                0 10px 25px rgba(15, 23, 42, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat span {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}


.section {
    padding: clamp(5rem, 9vw, 8rem) 0;
    position: relative;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 90% 25%, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(140deg, rgba(248, 250, 252, 0.92) 0%, rgba(231, 235, 241, 0.92) 45%, rgba(241, 245, 249, 0.94) 100%);
}

.section .container {
    position: relative;
    z-index: 1;
}

.section.alt {
    background:
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 60%),
        radial-gradient(circle at 85% 75%, rgba(15, 23, 42, 0.16) 0%, rgba(15, 23, 42, 0) 65%),
        linear-gradient(160deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.92) 45%, rgba(248, 250, 252, 0.94) 100%);
    position: relative;
    overflow: hidden;
}

.section.alt::before {
    content: "";
    position: absolute;
    inset: 8% 10% 6% 14%;
    border-radius: calc(var(--radius-xl) * 1.1);
    border: 1px solid rgba(59, 130, 246, 0.18);
    opacity: 0.75;
    pointer-events: none;
}

.section.alt::after {
    content: "";
    position: absolute;
    inset: 12% 16% 10% 18%;
    border-radius: calc(var(--radius-xl) * 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0.55;
    pointer-events: none;
}

.section .section-title {
    text-align: center;
}

.section-title {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(17, 17, 17, 0.6);
    margin-bottom: clamp(2.75rem, 6vw, 3.5rem);
}

.section-title::after {
    content: "";
    position: absolute;
    inset-inline: 25%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.75), transparent);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    position: relative;
    z-index: 1;
    gap: clamp(2rem, 4vw, 2.75rem);
}

.services-catalog {
    background: rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--radius) + 12px);
    padding: clamp(2.4rem, 5vw, 3.6rem) clamp(2rem, 5vw, 3rem);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.services-catalog::before {
    content: "";
    position: absolute;
    inset: -45% 40% 60% -10%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 70%);
    opacity: 0.45;
    filter: blur(45px);
    pointer-events: none;
}

.services-catalog::after {
    content: "";
    position: absolute;
    inset: 65% -25% -35% 45%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0.35;
    filter: blur(18px);
    pointer-events: none;
}

.services-header {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
    margin-bottom: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
}

[dir="rtl"] .services-header {
    text-align: center;
}

.services-header::after {
    content: "";
    width: clamp(80px, 12vw, 140px);
    height: 3px;
    border-radius: 999px;
    margin: 0.5rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.5), transparent);
    display: block;
}

.services-badge {
    display: inline-flex;
    align-self: center;
    padding: 0.5rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(7, 7, 7, 0.85);
    color: #fefefe;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.services-meta {
    color: rgba(17, 17, 17, 0.68);
    font-size: 1.05rem;
    line-height: 1.9;
}

.services-list {
    position: relative;
    z-index: 1;
    counter-reset: services;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.4rem, 3vw, 2rem);
    margin: 0;
    padding: clamp(0.5rem, 2vw, 1rem) 0 clamp(0.5rem, 2vw, 1rem);
}

.services-list li {
    counter-increment: services;
    background: rgba(255, 255, 255, 0.95);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(3.4rem, 6vw, 4.2rem) clamp(1.8rem, 3.5vw, 2.4rem) clamp(2.4rem, 4.5vw, 2.9rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.9;
    font-weight: 500;
    min-height: clamp(220px, 32vw, 280px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: rgba(17, 17, 17, 0.8);
}

.services-list li::before {
    content: counter(services);
    position: absolute;
    inset-inline-start: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(7, 7, 7, 0.95);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.05em;
}

.services-list li span {
    display: block;
    max-width: 28ch;
    color: inherit;
    font-size: 1.02rem;
    text-align: left;
}

[dir="rtl"] .services-list li::before {
    inset-inline-start: auto;
    inset-inline-end: 50%;
    transform: translate(50%, -50%);
}

[dir="rtl"] .services-list li span {
    text-align: right;
}

.services-list li:hover {
    transform: translateY(-10px);
    box-shadow: 0 32px 68px rgba(0, 0, 0, 0.15);
}

.services-highlight {
    background: linear-gradient(135deg, rgba(7, 7, 7, 0.95), rgba(20, 20, 20, 0.85));
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.services-highlight::before {
    background: linear-gradient(135deg, #f7c873, #f3b93c);
    color: #111;
}

#contact.section.alt {
    background:
        radial-gradient(circle at 12% 12%, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 88% 20%, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(155deg, rgba(248, 250, 252, 0.95) 0%, rgba(231, 235, 241, 0.92) 40%, rgba(241, 245, 249, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

#contact.section.alt::before {
    content: "";
    position: absolute;
    inset: 8% 10% 12% 10%;
    border-radius: calc(var(--radius-xl) * 0.9);
    border: 1px solid rgba(59, 130, 246, 0.18);
    opacity: 0.7;
    pointer-events: none;
}

.contact {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: calc(var(--radius) + 8px);
    padding: clamp(2.2rem, 4vw, 3rem);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

#services.section {
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 12vw, 10rem) 0;
    background:
        radial-gradient(circle at 10% 18%, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 55%),
        radial-gradient(circle at 90% 25%, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0) 55%),
        linear-gradient(150deg, rgba(248, 250, 252, 0.94) 0%, rgba(231, 235, 241, 0.92) 45%, rgba(241, 245, 249, 0.96) 100%);
}

#services.section::before {
    content: "";
    position: absolute;
    inset: 10% 8% 12% 8%;
    border-radius: calc(var(--radius-xl) * 1.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    opacity: 0.65;
    pointer-events: none;
}

#services.section::after {
    content: "";
    position: absolute;
    inset: 14% 12% 16% 12%;
    border-radius: calc(var(--radius-xl) * 0.95);
    border: 1px solid rgba(212, 175, 55, 0.18);
    opacity: 0.55;
    pointer-events: none;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: clamp(2.2rem, 4.5vw, 2.8rem) clamp(2rem, 4.5vw, 2.6rem);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08),
                0 8px 20px rgba(15, 23, 42, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.25), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 70px rgba(59, 130, 246, 0.15),
                0 15px 35px rgba(15, 23, 42, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
    animation-play-state: paused;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.card p {
    color: rgba(17, 17, 17, 0.64);
    line-height: 1.8;
}

.card:nth-child(odd) {
    animation: cardFloat 9s ease-in-out infinite;
}

.card:nth-child(even) {
    animation: cardFloat 9s ease-in-out infinite reverse;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
.steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(2rem, 4vw, 2.75rem);
}

.step {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: clamp(2.1rem, 4vw, 2.8rem) clamp(1.8rem, 3.5vw, 2.3rem);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.step-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step::after {
    content: "";
    position: absolute;
    inset: 14% 20% 16% 20%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--radius) - 4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.step:hover::after {
    opacity: 1;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

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

blockquote {
    position: relative;
    padding-inline-start: 1.5rem;
}

blockquote::before {
    content: "\201C";
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    position: absolute;
    top: -1rem;
    inset-inline-start: 0.25rem;
}

.callout {
    background: #111111;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 4.75rem) 0;
}

.callout .btn.secondary {
    background: #fff;
    color: var(--primary-dark);
}

.contact {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
    gap: 2.5rem;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
    color: rgba(17, 17, 17, 0.68);
}

.footer {
    background: linear-gradient(180deg, 
                #0f172a 0%, 
                #1e293b 50%, 
                #0f172a 100%);
    color: #e2e8f0;
    padding: 2rem 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(59, 130, 246, 0.5) 50%, 
                transparent 100%);
}

.footer::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -50%;
    right: 10%;
    background: radial-gradient(circle, 
                rgba(59, 130, 246, 0.08) 0%, 
                transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.footer a {
    color: var(--secondary);
}

.language-switcher {
    position: relative;
    z-index: 2;
}

.language-switcher::before {
    content: "🌐";
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
}

.language-switcher select {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.6rem 2.2rem 0.6rem 1rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    animation: languageSlide 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.4s forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes languageSlide {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.language-switcher select::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.language-switcher select:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
}

.language-switcher select:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

.language-switcher select option {
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-color: #1a1a2e;
    padding: 0.5rem;
    font-weight: 500;
}

.language-switcher select option:hover,
.language-switcher select option:checked {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f0f23 100%);
    background-color: #16213e;
}

.language-switcher::after {
    content: "▼";
    position: absolute;
    top: 50%;
    inset-inline-end: 0.8rem;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 0.7rem;
    transition: all 0.4s ease;
    pointer-events: none;
}

.language-switcher:hover::after {
    transform: translateY(-50%) scale(1.2);
    color: #ffffff;
}

.callout::before {
    content: "";
    position: absolute;
    inset: -30% 40% -30% -10%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 60%);
    transform: skewX(-18deg);
    pointer-events: none;
}

.callout::after {
    content: "";
    position: absolute;
    inset: 15% -20% 15% 70%;
    background: linear-gradient(300deg, rgba(255, 255, 255, 0.12), transparent 65%);
    filter: blur(6px);
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 960px) {
    .header-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .header-left,
    .header-right {
        justify-self: center;
    }
    
    .brand {
        align-items: center;
        gap: 0.2rem;
    }
    
    .brand .logo {
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .brand .tagline {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .header-nav nav {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-media {
        order: -1;
    }

    .hero-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: var(--mobile-space-base) 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }
    
    .header-layout {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-base);
        text-align: center;
    }
    
    .header-left {
        justify-self: center;
        display: flex;
        gap: var(--mobile-space-sm);
        align-items: center;
    }
    
    .brand {
        align-items: center;
        gap: 0.2rem;
    }
    
    .logo {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }
    
    .tagline {
        font-size: 0.75rem;
        opacity: 0.9;
        white-space: nowrap;
        padding-left: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }
    
    .cta-btn {
        padding: var(--mobile-space-base) var(--mobile-space-xl);
        font-size: var(--mobile-text-sm);
        min-height: var(--touch-target-min);
        border-radius: 12px;
        font-weight: 600;
        transition: all var(--transition-fast);
    }
    
    .cta-btn:active {
        transform: translateY(1px);
    }
    
    .language-switcher select {
        padding: var(--mobile-space-sm) 2.5rem var(--mobile-space-sm) var(--mobile-space-base);
        font-size: var(--mobile-text-sm);
        min-height: var(--touch-target-min);
        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-weight: 500;
    }
    
    .language-switcher select:focus {
        border-color: var(--accent-light);
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    }
}

/* للشاشات الكبيرة جداً */
@media (min-width: 1920px) {
    .hero-marquee {
        width: min(85%, 1200px);
        height: clamp(3rem, 4vw, 4rem);
    }
}

/* للشاشات الكبيرة */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero-marquee {
        width: min(88%, 1100px);
    }
}

/* للأجهزة اللوحية الأفقية */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-marquee {
        width: min(92%, 900px);
    }
}

/* للأجهزة اللوحية العمودية */
@media (max-width: 1023px) and (min-width: 769px) {
    .hero-marquee {
        width: min(95%, 700px);
        top: clamp(1.2rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .hero-marquee {
        top: clamp(1rem, 3vw, 2rem);
        width: min(95%, 600px);
        height: clamp(2.8rem, 5vw, 3.5rem);
    }
    
    .hero-marquee__item {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        font-weight: 600;
        letter-spacing: 0.05em;
        padding: 0 var(--mobile-space-base);
    }
    
    .hero-marquee__separator {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin: 0 var(--mobile-space-xs);
    }
    
    .hero-marquee__track {
        gap: var(--mobile-space-base);
        animation-duration: 25s; /* أبطأ قليلاً للقراءة */
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: var(--mobile-space-sm) 0;
    }
    
    .top-bar .container {
        gap: var(--mobile-space-sm);
    }
    
    .brand {
        gap: 0.1rem;
        align-items: flex-start;
        max-width: 60vw;
    }
    
    .logo {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .tagline {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        padding-left: 0;
    }
    
    .header-actions {
        flex-direction: row;
        gap: var(--mobile-space-xs);
        align-items: center;
    }
    
    .header-actions nav {
        display: none;
    }
    
    .cta-btn {
        padding: var(--mobile-space-sm) var(--mobile-space-base);
        font-size: 0.75rem;
        min-height: var(--touch-target-min);
        white-space: nowrap;
    }
    
    .hero-marquee {
        width: min(98%, 500px);
        height: clamp(2.5rem, 6vw, 3rem);
        top: clamp(0.8rem, 2.5vw, 1.5rem);
    }
    
    .hero-marquee__item {
        font-size: clamp(1rem, 5vw, 1.2rem);
        padding: 0 var(--mobile-space-sm);
    }
}

@media (max-width: 768px) {
    .hero-card {
        padding: var(--mobile-space-xl) var(--mobile-space-lg);
        margin: var(--mobile-space-xl) 0;
        border-radius: 16px;
    }
    
    .lead-form {
        gap: var(--mobile-space-lg);
        margin-top: var(--mobile-space-xl);
    }
    
    .lead-form label {
        font-size: var(--mobile-text-base);
        font-weight: 600;
        margin-bottom: var(--mobile-space-xs);
        color: var(--text);
        display: block;
    }
    
    .lead-form input,
    .lead-form select {
        padding: var(--mobile-space-base);
        font-size: var(--mobile-text-base);
        min-height: var(--touch-target-comfortable);
        border-radius: 8px;
        border: 2px solid #e2e8f0;
        width: 100%;
        transition: all var(--transition-fast);
        background: white;
    }
    
    .lead-form input:focus,
    .lead-form select:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
    }
    
    .lead-form input::placeholder {
        color: #94a3b8;
        font-size: var(--mobile-text-sm);
    }
    
    .lead-form button {
        padding: var(--mobile-space-lg) var(--mobile-space-xl);
        font-size: var(--mobile-text-base);
        font-weight: 600;
        min-height: var(--touch-target-large);
        border-radius: 12px;
        width: 100%;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        transition: all var(--transition-fast);
        cursor: pointer;
    }
    
    .lead-form button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--mobile-space-2xl) 0;
    }
    
    .section-title {
        font-size: var(--mobile-text-3xl);
        line-height: 1.2;
        margin-bottom: var(--mobile-space-base);
        text-align: center;
    }
    
    .section-subtitle {
        font-size: var(--mobile-text-lg);
        line-height: 1.6;
        margin-bottom: var(--mobile-space-xl);
        text-align: center;
        color: var(--text-light);
    }
    
    .container {
        padding: 0 var(--mobile-space-base);
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-xl);
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-2xl);
    }
    
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-media {
        order: 1;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--mobile-space-base);
        margin-top: var(--mobile-space-xl);
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: var(--mobile-space-base) var(--mobile-space-xl);
        min-height: var(--touch-target-comfortable);
    }
}

@media (max-width: 768px) {
    .services-catalog {
        padding: var(--mobile-space-xl) var(--mobile-space-base);
        border-radius: 16px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
        gap: var(--mobile-space-lg);
        padding: var(--mobile-space-base) 0;
    }
    
    .services-list li {
        padding: var(--mobile-space-2xl) var(--mobile-space-lg) var(--mobile-space-xl);
        min-height: auto;
        border-radius: 12px;
        text-align: center;
    }
    
    .services-list li::before {
        width: 50px;
        height: 50px;
        font-size: var(--mobile-text-base);
    }
    
    .services-list li span {
        font-size: var(--mobile-text-base);
        line-height: 1.6;
        max-width: none;
        text-align: center;
        color: var(--text);
    }
    
    .services-list li:hover {
        transform: none; /* تقليل الحركة على الهاتف */
    }
    
    .services-list li:active {
        transform: scale(0.98);
    }
}

@media (max-width: 768px) {
    .btn {
        padding: var(--mobile-space-base) var(--mobile-space-xl);
        font-size: var(--mobile-text-base);
        min-height: var(--touch-target-comfortable);
        border-radius: 12px;
        font-weight: 600;
        transition: all var(--transition-fast);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border: none;
    }
    
    .btn.primary {
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .btn.ghost {
        border: 2px solid var(--accent);
        color: var(--accent);
        background: transparent;
    }
    
    .btn:active {
        transform: translateY(1px);
    }
    
    .btn:focus {
        outline: 2px solid var(--accent-light);
        outline-offset: 2px;
    }
    
    /* تحسين الروابط */
    a {
        color: var(--accent);
        text-decoration: none;
        transition: color var(--transition-fast);
    }
    
    a:hover, a:focus {
        color: var(--accent-dark);
        text-decoration: underline;
    }
    
    /* تحسين روابط التواصل */
    .contact-list a {
        color: var(--accent);
        font-weight: 500;
        padding: var(--mobile-space-xs) 0;
        display: inline-block;
        min-height: var(--touch-target-min);
        line-height: 1.4;
    }
}

@media (max-width: 640px) {
    .hero-card {
        padding: var(--mobile-space-lg) var(--mobile-space-base);
    }

    .callout .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--mobile-space-base);
    }
    
    .container {
        padding: 0 var(--mobile-space-sm);
    }
    
    .services-list li {
        padding: var(--mobile-space-xl) var(--mobile-space-base) var(--mobile-space-lg);
    }
    
    .services-list li span {
        font-size: var(--mobile-text-sm);
    }
    
    .btn {
        width: 100%;
        padding: var(--mobile-space-lg) var(--mobile-space-xl);
        min-height: var(--touch-target-large);
    }
}

/* دعم الشاشات الصغيرة جداً */
@media (max-width: 320px) {
    .container {
        padding: 0 var(--mobile-space-xs);
    }
    
    .hero-card {
        padding: var(--mobile-space-base) var(--mobile-space-xs);
        margin: var(--mobile-space-base) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .section-subtitle {
        font-size: var(--mobile-text-base);
    }
    
    .btn {
        padding: var(--mobile-space-sm) var(--mobile-space-base);
        font-size: var(--mobile-text-sm);
        min-height: var(--touch-target-min);
    }
    
    .lead-form input,
    .lead-form select {
        padding: var(--mobile-space-sm);
        font-size: var(--mobile-text-sm);
        min-height: var(--touch-target-min);
    }
    
    .hero-marquee {
        width: min(99%, 380px);
        height: clamp(2rem, 8vw, 2.5rem);
        top: clamp(0.5rem, 2vw, 1rem);
    }
    
    .hero-marquee__item {
        font-size: clamp(0.9rem, 6vw, 1rem);
        padding: 0 var(--mobile-space-xs);
    }
    
    .services-list li {
        padding: var(--mobile-space-base) var(--mobile-space-xs) var(--mobile-space-sm);
    }
    
    .services-list li::before {
        width: 40px;
        height: 40px;
        font-size: var(--mobile-text-sm);
    }
    
    .top-bar {
        padding: var(--mobile-space-xs) 0;
    }
    
    .logo {
        font-size: var(--mobile-text-xl);
    }
    
    .tagline {
        font-size: var(--mobile-text-xs);
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 320px) {
    .hero-marquee {
        width: 95%;
        height: clamp(1.8rem, 10vw, 2.2rem);
        top: clamp(0.3rem, 1.5vw, 0.8rem);
    }
    
    .hero-marquee__item {
        font-size: clamp(0.8rem, 7vw, 0.9rem);
        padding: 0 0.25rem;
    }
    
    .hero-marquee__separator {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }
    
    .hero-marquee__track {
        gap: 0.75rem;
        animation-duration: 20s;
    }
}

/* ═══════════════════════════════════════════════════════════
   🎨 PROFESSIONAL BUTTONS - أنماط الأزرار الاحترافية
   ═══════════════════════════════════════════════════════════ */

/* الأنماط الأساسية للأزرار */
.btn, .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-transform: none;
    letter-spacing: 0.02em;
}

/* الزر الأساسي */
.btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

/* الزر الثانوي */
.btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* الزر الشبح */
.btn.ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn.ghost:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.2);
}

/* الزر الناجح */
.btn.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    font-weight: 600;
    padding: 1rem 2rem;
}

.btn.success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* الزر التحذيري */
.btn.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn.warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* الزر الاحترافي */
.cta-btn.professional {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3), 
                0 4px 12px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    min-width: 160px;
    text-align: center;
}

.cta-btn.professional:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4), 
                0 8px 20px rgba(59, 130, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: #ffffff;
}

.cta-btn.professional:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* أحجام مختلفة للأزرار */
.btn.small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.btn.large {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* الزر مع أيقونة */
.btn.with-icon::before {
    content: attr(data-icon);
    font-size: 1.1em;
}

/* تأثير التموج */
.btn::after, .cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after, .cta-btn:active::after {
    width: 300px;
    height: 300px;
}

/* حالة التحميل */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: -0.5rem;
}

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

/* حالة التعطيل */
.btn:disabled, .cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* العرض الكامل */
.w-100 {
    width: 100%;
    justify-content: center;
}

/* أنماط خاصة لأزرار Hero */
.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-actions .btn {
    min-width: 160px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-actions .btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
}

.hero-actions .btn.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3);
}

.hero-actions .btn.secondary {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.hero-actions .btn.secondary:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}



/* تحسينات للهاتف المحمول */
@media (max-width: 768px) {
    .btn, .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* حد أدنى للمس */
    }
    
    .btn.small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .btn.large {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .cta-btn.professional {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
        min-width: 140px;
    }
}

/* تحسينات للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .btn.secondary {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .btn.ghost {
        border-color: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.9);
    }
}

/* ═══════════════════════════════════════════════════════════
   🖼️ IMAGE CAROUSEL - شريط الصور المتحرك
   ═══════════════════════════════════════════════════════════ */

.image-carousel {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    position: relative;
}

.image-carousel::before,
.image-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.image-carousel::before {
    left: 0;
    background: linear-gradient(90deg, #f8fafc 0%, transparent 100%);
}

.image-carousel::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #f8fafc 100%);
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: carouselScroll 30s linear infinite;
    width: max-content;
}

.carousel-slide {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.carousel-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.8);
    transition: all 0.3s ease;
}

.carousel-slide:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.33%);
    }
}

/* إيقاف الحركة عند التمرير */
.image-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* تحسينات للهاتف المحمول */
@media (max-width: 768px) {
    .image-carousel {
        padding: 2rem 0;
    }
    
    .carousel-slide {
        width: 160px;
        height: 100px;
        padding: 0.75rem;
    }
    
    .carousel-track {
        gap: 1.5rem;
        animation-duration: 25s;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        width: 140px;
        height: 90px;
        padding: 0.5rem;
    }
    
    .carousel-track {
        gap: 1rem;
        animation-duration: 20s;
    }
}

/* تحسينات الأداء */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
    }
    
    .carousel-slide {
        transition: none;
    }
}



/* ═══════════════════════════════════════════════════════════
   ⭐ FLOATING RATING WIDGET - نظام التقييم العائم
   ═══════════════════════════════════════════════════════════ */

.floating-rating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: var(--heading-font);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-rating.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-rating.bottom-hidden {
    transform: translateY(100px);
    opacity: 0;
}

.rating-trigger {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3), 
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    min-width: 160px;
    justify-content: center;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.rating-trigger:hover::before {
    left: 100%;
}

.rating-trigger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.4),
                0 8px 24px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.rating-trigger.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

.rating-icon {
    font-size: 1.3rem;
    animation: gentlePulse 3s infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes gentlePulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
}

.rating-text {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rating-widget {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 320px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.rating-widget.active {
    display: block;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rating-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
}

.close-rating {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-rating:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.rating-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.3;
}

.star:hover,
.star.active {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.rating-labels {
    text-align: center;
    margin-bottom: 20px;
    min-height: 24px;
}

.rating-label {
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.rating-label.active {
    color: var(--accent);
    font-weight: 600;
    transform: scale(1.05);
}

#ratingComment {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

#ratingComment:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rating-actions {
    display: flex;
    gap: 12px;
}

.rating-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
}

.thank-you-message {
    text-align: center;
    padding: 20px 0;
}

.thank-you-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.thank-you-message h3 {
    margin: 0 0 12px;
    color: var(--success);
    font-size: 1.3rem;
}

.thank-you-message p {
    margin: 8px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   📊 RATINGS PANEL - لوحة إدارة التقييمات
   ═══════════════════════════════════════════════════════════ */

.ratings-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95) 0%, rgba(180, 148, 31, 0.95) 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    opacity: 0;
    transform: translateY(100px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    font-family: var(--heading-font);
}

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

.ratings-toggle:hover::before {
    left: 100%;
}

.ratings-toggle.visible {
    opacity: 1;
    transform: translateY(0);
}

.ratings-toggle.bottom-hidden {
    transform: translateY(100px);
    opacity: 0;
}

.ratings-toggle.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

.ratings-toggle.new-rating {
    animation: newRatingPulse 1s ease-in-out 3;
}

@keyframes newRatingPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3),
                    0 4px 16px rgba(0, 0, 0, 0.1),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 12px 48px rgba(212, 175, 55, 0.5),
                    0 8px 24px rgba(0, 0, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.ratings-toggle:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.4),
                0 8px 24px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.toggle-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.toggle-text {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ratings-count {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ratings-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1001;
    opacity: 0;
    transform: translateX(-100%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    overflow: hidden;
}

.ratings-panel.active {
    display: block;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.ratings-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.ratings-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 600;
}

.ratings-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ratings-controls .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.close-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.close-panel:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.ratings-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 24px;
    background: white;
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ratings-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 24px 20px;
}

.no-ratings {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-ratings p {
    margin: 0 0 8px;
    font-size: 1rem;
}

.no-ratings small {
    font-size: 0.85rem;
    opacity: 0.7;
}

.rating-item {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.rating-item.new {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    animation: newItemGlow 2s ease-in-out;
}

@keyframes newItemGlow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}

.rating-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rating-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rating-stars-display {
    font-size: 1rem;
    color: #fbbf24;
}

.rating-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.rating-comment {
    font-size: 0.9rem;
    color: var(--text);
    font-style: italic;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

/* تحسينات للهاتف المحمول */
@media (max-width: 768px) {
    .floating-rating {
        bottom: 15px;
        right: 15px;
    }
    
    .rating-trigger {
        padding: 12px 20px;
        min-width: 140px;
        border-radius: 14px;
    }
    
    .rating-text {
        font-size: 0.85rem;
    }
    
    .ratings-toggle {
        bottom: 15px;
        left: 15px;
        padding: 12px 18px;
        border-radius: 14px;
    }
    
    .toggle-text {
        font-size: 0.85rem;
    }
    
    .ratings-count {
        padding: 3px 8px;
        font-size: 0.75rem;
        min-width: 20px;
    }
    
    .ratings-panel {
        width: calc(100vw - 40px);
        max-width: 380px;
        top: 15px;
        left: 15px;
    }
    
    .ratings-header {
        padding: 16px 20px;
    }
    
    .ratings-stats {
        padding: 16px 20px;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .ratings-list {
        padding: 0 20px 16px;
    }
    
    .rating-trigger {
        padding: 10px 16px;
        min-width: 120px;
    }
    
    .rating-text {
        font-size: 0.8rem;
    }
    
    .rating-widget {
        width: 280px;
        padding: 20px;
    }
    
    .rating-header h3 {
        font-size: 1rem;
    }
    
    .star {
        font-size: 1.8rem;
    }
    
    .rating-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .floating-rating {
        bottom: 10px;
        right: 10px;
    }
    
    .rating-widget {
        width: calc(100vw - 40px);
        max-width: 280px;
    }
}

/* تحسينات التفاعل وإمكانية الوصول */
.hero-marquee:hover .hero-marquee__track {
    animation-play-state: paused;
}

.hero-marquee:focus-within .hero-marquee__track {
    animation-play-state: paused;
}

/* تحسينات الأداء والإمكانية */
@media (prefers-reduced-motion: reduce) {
    .hero-marquee__track {
        animation: none;
    }
    
    .hero-marquee__item {
        opacity: 0.8;
    }
    
    .hero-blob {
        animation: none;
    }
    
    .services-list li {
        transition: none;
    }
    
    .btn {
        transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* تحسين للشاشات عالية الكثافة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-visual img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .services-list li::before {
        backface-visibility: hidden;
        transform-style: preserve-3d;
    }
}

/* تحسين للمس */
@media (hover: none) and (pointer: coarse) {
    .services-list li:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* تحسين حجم الأهداف للمس */
    .btn, .lead-form input, .lead-form select, .language-switcher select {
        min-height: var(--touch-target-comfortable);
    }
}

/* ═══════════════════════════════════════════════════════════
   🖼️ IMAGE CAROUSEL - شريط الصور المتحرك
   ═══════════════════════════════════════════════════════════ */

/* متغيرات الشريط المتحرك */
:root {
    --carousel-slide-width: 200px;
    --carousel-slide-height: 150px;
    --carousel-gap: 2rem;
    --carousel-speed: 40s; /* حركة أبطأ وأكثر سلاسة */
    --carousel-padding: 3rem;
}

/* الحاوي الرئيسي */
.image-carousel {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    padding: var(--carousel-padding) 0;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(255, 255, 255, 0.8);
    /* إضافة تدرج شفاف على الجانبين لإخفاء الحواف */
}

.image-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(248, 250, 252, 0.8) 0%, 
        transparent 10%, 
        transparent 90%, 
        rgba(248, 250, 252, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* تأثير خفيف للخلفية */
.image-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* حاوي المسار */
.carousel-container {
    width: 100%;
    overflow: hidden;
}

/* مسار الصور */
.carousel-track {
    display: flex;
    width: max-content; /* عرض يتناسب مع المحتوى */
    gap: var(--carousel-gap);
    align-items: center;
}

/* شرائح الصور */
.carousel-slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الصور */
.carousel-slide img {
    width: var(--carousel-slide-width);
    height: var(--carousel-slide-height);
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

/* تأثير لمعان خفيف */
.carousel-slide img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* تأثير hover للصور */
.carousel-slide img:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1) contrast(1.05);
}

/* تأثير تكبير تدريجي للصور */
.carousel-slide img {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* تأثير لمعان متحرك */
.carousel-slide img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
    border-radius: inherit;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* الحركة المستمرة */
.carousel-track {
    animation: carouselScroll var(--carousel-speed) ease-in-out infinite;
    will-change: transform;
    transition: transform 0.3s ease;
}

/* توقف الحركة عند hover */
.image-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* keyframe للحركة المحسنة */
@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(calc(-2 * (var(--carousel-slide-width) + var(--carousel-gap))));
    }
    50% {
        transform: translateX(calc(-4 * (var(--carousel-slide-width) + var(--carousel-gap))));
    }
    75% {
        transform: translateX(calc(-6 * (var(--carousel-slide-width) + var(--carousel-gap))));
    }
    100% {
        transform: translateX(calc(-8 * (var(--carousel-slide-width) + var(--carousel-gap))));
    }
}

/* تحسين الأداء */
.carousel-slide img {
    will-change: transform;
    backface-visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════
   📱 CAROUSEL RESPONSIVE - التصميم المتجاوب للشريط
   ═══════════════════════════════════════════════════════════ */

/* شاشات كبيرة */
@media (min-width: 1200px) {
    :root {
        --carousel-slide-width: 250px;
        --carousel-slide-height: 187px;
        --carousel-gap: 2.5rem;
    }
}

/* تابلت */
@media (max-width: 768px) {
    :root {
        --carousel-slide-width: 150px;
        --carousel-slide-height: 112px;
        --carousel-gap: 1.5rem;
        --carousel-padding: 2rem;
        --carousel-speed: 35s; /* أبطأ للشاشات الصغيرة لسهولة المشاهدة */
    }
    
    .image-carousel {
        padding: var(--carousel-padding) 0;
    }
    
    .carousel-slide img {
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }
    
    .carousel-slide img:hover {
        transform: translateY(-4px) scale(1.03);
    }
    
    /* توقف الحركة عند اللمس على الهاتف */
    .image-carousel:active .carousel-track {
        animation-play-state: paused;
    }
}

/* هاتف محمول */
@media (max-width: 480px) {
    :root {
        --carousel-slide-width: 120px;
        --carousel-slide-height: 90px;
        --carousel-gap: 1rem;
        --carousel-padding: 1.5rem;
        --carousel-speed: 30s; /* أبطأ للهاتف لسهولة المشاهدة */
    }
    
    .carousel-slide img {
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.9);
    }
    
    .carousel-slide img:hover {
        transform: none; /* إزالة hover على الهاتف */
    }
    
    /* إضافة مؤشر بصري للحركة */
    .image-carousel::before {
        content: '← اسحب للتوقف →';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 12px;
        z-index: 2;
        opacity: 0.8;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 320px) {
    :root {
        --carousel-slide-width: 100px;
        --carousel-slide-height: 75px;
        --carousel-gap: 0.75rem;
        --carousel-padding: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   ♿ ACCESSIBILITY - إمكانية الوصول
   ═══════════════════════════════════════════════════════════ */

/* دعم تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        animation: none;
    }
    
    .carousel-slide img {
        transition: none;
    }
    
    .carousel-slide img:hover {
        transform: none;
    }
    
    /* عرض ثابت للصور */
    .carousel-track {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: var(--carousel-gap);
        padding: 0 var(--carousel-gap);
    }
}

/* تحسين للأجهزة اللمسية */
@media (hover: none) and (pointer: coarse) {
    .carousel-slide img:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
}

/* ═══════════════════════════════════════════════════════════
   ⭐ FLOATING RATING SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* زر التقييمات العائم - صغير على اليسار */
.ratings-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #1e3a8a 100%);
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    box-shadow: 
        0 8px 25px rgba(74, 144, 226, 0.4),
        0 4px 15px rgba(30, 58, 138, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.ratings-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.ratings-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

.ratings-toggle:hover {
    transform: translateY(-4px) scale(1.15);
    box-shadow: 
        0 15px 40px rgba(74, 144, 226, 0.6),
        0 8px 25px rgba(30, 58, 138, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #60a5fa 0%, #4a90e2 50%, #357abd 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.toggle-icon {
    font-size: 1.6rem;
    animation: chartPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.ratings-toggle:hover .toggle-icon {
    font-size: 1.8rem;
    animation: chartBounce 0.6s ease-in-out;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

@keyframes chartPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes chartBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.15);
    }
    75% {
        transform: scale(1.05);
    }
}

.toggle-text {
    display: none; /* مخفي في التصميم الصغير */
}

.ratings-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #c44569 100%);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 
        0 4px 12px rgba(255, 71, 87, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: countPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.ratings-count:not(:empty) {
    animation: countBounce 0.6s ease-in-out;
}

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

@keyframes countBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* نظام التقييم العائم - صغير على اليسار */
.floating-rating {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 1001;
}

.rating-trigger {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff8c00 100%);
    color: #2c3e50;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 4px 15px rgba(255, 140, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.rating-trigger::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.rating-trigger:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

.rating-trigger:hover {
    transform: translateY(-4px) scale(1.15);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.6),
        0 8px 25px rgba(255, 140, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #ffb347 100%);
    border-color: rgba(255, 255, 255, 0.6);
}

.rating-trigger:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(255, 215, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.rating-icon {
    font-size: 1.6rem;
    animation: starPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.rating-trigger:hover .rating-icon {
    font-size: 1.8rem;
    animation: starSpin 0.6s ease-in-out;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

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

@keyframes starSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.rating-text {
    display: none; /* مخفي في التصميم الصغير */
}

/* نافذة التقييم - منبثقة من اليسار */
.rating-widget {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 320px;
    max-width: 350px;
    transform: translateX(-20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rating-widget.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.close-rating {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s ease;
}

.close-rating:hover {
    color: var(--error);
}

.rating-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
    justify-content: center;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
}

.star:hover,
.star.active {
    filter: grayscale(0%);
    transform: scale(1.2);
}

.rating-labels {
    text-align: center;
    margin-bottom: 1rem;
}

.rating-label {
    font-weight: 600;
    color: var(--text);
}

#ratingComment {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
    font-family: var(--body-font);
}

.rating-actions {
    display: flex;
    gap: 0.5rem;
}

.rating-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* لوحة إدارة التقييمات - من اليسار */
.ratings-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.ratings-panel.active {
    left: 0;
}

.ratings-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
}

.ratings-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.close-panel:hover {
    opacity: 0.7;
}

.ratings-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-alt);
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.ratings-list {
    padding: 1.5rem;
}

.no-ratings {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
}

/* الرسوم المتحركة */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .ratings-toggle {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
    }
    
    .rating-trigger {
        width: 45px;
        height: 45px;
    }
    
    .floating-rating {
        bottom: 75px;
        left: 15px;
    }
    
    .toggle-icon {
        font-size: 1.4rem;
    }
    
    .rating-icon {
        font-size: 1.4rem;
    }
    
    .ratings-count {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
    
    .rating-widget {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        left: -140px;
    }
    
    .ratings-panel {
        width: 100vw;
        left: -100vw;
    }
    
    .ratings-panel.active {
        left: 0;
    }
}/* ════════
═══════════════════════════════════════════════════
   💬 CUSTOMER SERVICE CHAT SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* زر الدردشة العائم */
.chat-toggle {
    position: fixed;
    bottom: 140px;
    left: 20px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 4px 15px rgba(7, 94, 84, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.chat-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.chat-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

.chat-toggle:hover {
    transform: translateY(-4px) scale(1.15);
    box-shadow: 
        0 15px 40px rgba(37, 211, 102, 0.6),
        0 8px 25px rgba(7, 94, 84, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #34e79a 0%, #25d366 50%, #128c7e 100%);
}

.chat-icon {
    font-size: 1.8rem;
    animation: chatPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.chat-toggle:hover .chat-icon {
    font-size: 2rem;
    animation: chatBounce 0.6s ease-in-out;
}

@keyframes chatPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes chatBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.2);
    }
    75% {
        transform: scale(1.05);
    }
}

/* نافذة الدردشة - تصميم متماشي مع الموقع */
.chat-window {
    position: fixed;
    bottom: 210px;
    left: 20px;
    width: 380px;
    height: 500px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(15, 23, 42, 0.1);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1004;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    border-top: 3px solid var(--accent);
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* رأس نافذة الدردشة - متماشي مع الموقع */
.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(59, 130, 246, 0.1) 50%, 
                transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
    pointer-events: none;
}

.chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--accent) 50%, 
                transparent 100%);
    opacity: 0.7;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.chat-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--secondary), var(--accent));
    z-index: -1;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.chat-agent-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--heading-font);
    letter-spacing: 0.02em;
}

.chat-status {
    font-size: 0.85rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--body-font);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 50%;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* منطقة الرسائل - تصميم متماشي */
.chat-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.chat-messages::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-alt);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* الرسائل - تصميم محسن */
.message {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--body-font);
    box-shadow: var(--shadow-sm);
}

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

.message.bot {
    background: var(--card-bg);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
}

.message.bot::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

.message.user {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    position: relative;
}

.message.user::before {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent var(--accent-dark) transparent;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-align: right;
}

/* منطقة الكتابة - تصميم محسن */
.chat-input-area {
    padding: 1.25rem;
    background: var(--card-bg);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    position: relative;
}

.chat-input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, 
                transparent 0%, 
                var(--accent) 50%, 
                transparent 100%);
    opacity: 0.3;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    resize: none;
    max-height: 100px;
    min-height: 45px;
    transition: all var(--transition-base);
    font-family: var(--body-font);
    background: var(--bg);
    color: var(--text);
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--card-bg);
}

.chat-input::placeholder {
    color: var(--muted);
    font-style: italic;
}

.chat-send {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.chat-send::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.chat-send:hover::before {
    transform: translateX(100%);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* الردود السريعة - تصميم محسن */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 1.25rem 0;
    padding-bottom: 0.5rem;
}

.quick-reply {
    background: var(--card-bg);
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--body-font);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.quick-reply::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.quick-reply:hover::before {
    transform: translateY(0);
}

.quick-reply:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-dark);
}

.quick-reply span {
    position: relative;
    z-index: 1;
}

/* مؤشر الكتابة */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

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

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #25d366;
    animation: typingDot 1.4s ease-in-out infinite;
}

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

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

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .chat-toggle {
        bottom: 130px;
        left: 15px;
        width: 55px;
        height: 55px;
    }
    
    .chat-icon {
        font-size: 1.6rem;
    }
    
    .chat-window {
        bottom: 195px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100vw - 30px);
        height: 400px;
    }
    
    .chat-header {
        padding: 0.75rem 1rem;
    }
    
    .chat-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .chat-agent-info h4 {
        font-size: 0.9rem;
    }
    
    .chat-status {
        font-size: 0.75rem;
    }
}

/* إشعار الرسائل الجديدة */
.chat-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}/* ════
═══════════════════════════════════════════════════════
   🎯 FLOATING BUTTONS - FIXED POSITIONING
   ═══════════════════════════════════════════════════════════ */

/* إصلاح الأزرار العائمة - التقييمات */
.ratings-toggle {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 50%, #1e3a8a 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 55px !important;
    height: 55px !important;
    box-shadow: 
        0 8px 25px rgba(74, 144, 226, 0.4),
        0 4px 15px rgba(30, 58, 138, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
}

.ratings-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.ratings-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out !important;
    opacity: 1 !important;
}

.ratings-toggle:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow: 
        0 15px 40px rgba(74, 144, 226, 0.6),
        0 8px 25px rgba(30, 58, 138, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #60a5fa 0%, #4a90e2 50%, #357abd 100%) !important;
}

/* زر التقييم العائم */
.floating-rating {
    position: fixed !important;
    bottom: 85px !important;
    left: 20px !important;
    z-index: 1001 !important;
}

.rating-trigger {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff8c00 100%) !important;
    color: #2c3e50 !important;
    border-radius: 50% !important;
    width: 55px !important;
    height: 55px !important;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        0 4px 15px rgba(255, 140, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.rating-trigger::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.rating-trigger:hover::before {
    animation: shimmer 1.5s ease-in-out !important;
    opacity: 1 !important;
}

.rating-trigger:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.6),
        0 8px 25px rgba(255, 140, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #ffb347 100%) !important;
}

/* زر الدردشة العائم - إصلاح قوي */
#chatToggle,
.chat-toggle {
    position: fixed !important;
    bottom: 150px !important;
    left: 20px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 4px 15px rgba(7, 94, 84, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
}

.chat-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.chat-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out !important;
    opacity: 1 !important;
}

.chat-toggle:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow: 
        0 15px 40px rgba(37, 211, 102, 0.6),
        0 8px 25px rgba(7, 94, 84, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #34e79a 0%, #25d366 50%, #128c7e 100%) !important;
}

/* الأيقونات */
.toggle-icon {
    font-size: 1.6rem !important;
    animation: chartPulse 3s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
}

.rating-icon {
    font-size: 1.6rem !important;
    animation: starPulse 3s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    transition: all 0.3s ease !important;
}

.chat-icon {
    font-size: 1.8rem !important;
    animation: chatPulse 3s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
    display: block !important;
    line-height: 1 !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* العدادات */
.ratings-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #c44569 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4) !important;
    animation: countPulse 2s ease-in-out infinite !important;
}

.chat-notification {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #ff4757 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4) !important;
    animation: notificationPulse 2s ease-in-out infinite !important;
}

/* الرسوم المتحركة */
@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes chartPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes chatPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

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

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

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .ratings-toggle {
        bottom: 15px !important;
        left: 15px !important;
        width: 50px !important;
        height: 50px !important;
    }
    
    .floating-rating {
        bottom: 75px !important;
        left: 15px !important;
    }
    
    .rating-trigger {
        width: 50px !important;
        height: 50px !important;
    }
    
    .chat-toggle {
        bottom: 135px !important;
        left: 15px !important;
        width: 55px !important;
        height: 55px !important;
    }
    
    .toggle-icon,
    .rating-icon {
        font-size: 1.4rem !important;
    }
    
    .chat-icon {
        font-size: 1.6rem !important;
    }
    
    .ratings-count,
    .chat-notification {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
        top: -6px !important;
        right: -6px !important;
    }
}

/* إخفاء الأزرار عند التمرير لأسفل كثيراً */
.ratings-toggle.bottom-hidden,
.floating-rating.bottom-hidden,
.chat-toggle.bottom-hidden {
    opacity: 0.3 !important;
    transform: translateY(10px) scale(0.8) !important;
}

/* إظهار الأزرار تدريجياً */
.ratings-toggle.visible,
.floating-rating.visible,
.chat-toggle.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}/* ══
═════════════════════════════════════════════════════════
   🚨 EMERGENCY FIX - CHAT BUTTON FLOATING
   ═══════════════════════════════════════════════════════════ */

/* إصلاح طارئ لزر الدردشة مع الصورة */
div[id="chatToggle"] {
    position: fixed !important;
    bottom: 150px !important;
    left: 20px !important;
    z-index: 99999 !important;
    background: transparent !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 3px solid white !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    float: none !important;
    clear: none !important;
    overflow: hidden !important;
}

/* إصلاح صورة الدردشة */
div[id="chatToggle"] .chat-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

div[id="chatToggle"] img.chat-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* إصلاح إشعار الدردشة */
div[id="chatToggle"] .chat-notification {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #ff4757 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
}

/* إصلاح hover للدردشة مع الصورة */
div[id="chatToggle"]:hover {
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    border-color: #25d366 !important;
}

div[id="chatToggle"]:hover img.chat-icon {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
}

/* إزالة أي تأثيرات قد تمنع العوم */
div[id="chatToggle"] {
    position: fixed !important;
    /* إزالة أي خصائص قد تتداخل */
    float: none !important;
    clear: none !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* التأكد من عدم تأثر الزر بأي container */
body div[id="chatToggle"] {
    position: fixed !important;
    bottom: 150px !important;
    left: 20px !important;
}

/* للهواتف المحمولة */
@media (max-width: 768px) {
    div[id="chatToggle"] {
        bottom: 135px !important;
        left: 15px !important;
        width: 55px !important;
        height: 55px !important;
    }
    
    div[id="chatToggle"] .chat-icon {
        font-size: 1.6rem !important;
    }
}/*
 ═══════════════════════════════════════════════════════════
   💬 CHAT BUTTON - FIXED DESIGN
   ═══════════════════════════════════════════════════════════ */

/* زر الدردشة العائم - تصميم محسن */
.chat-toggle {
    position: fixed !important;
    bottom: 150px !important;
    left: 20px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 50%, #075e54 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    box-shadow: 
        0 8px 25px rgba(37, 211, 102, 0.4),
        0 4px 15px rgba(7, 94, 84, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 1003 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(15px) !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    overflow: hidden !important;
}

/* تأثير shimmer للزر */
.chat-toggle::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%) !important;
    transform: rotate(45deg) !important;
    transition: all 0.6s ease !important;
    opacity: 0 !important;
}

.chat-toggle:hover::before {
    animation: shimmer 1.5s ease-in-out !important;
    opacity: 1 !important;
}

/* تأثير hover */
.chat-toggle:hover {
    transform: translateY(-4px) scale(1.15) !important;
    box-shadow: 
        0 15px 40px rgba(37, 211, 102, 0.6),
        0 8px 25px rgba(7, 94, 84, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #34e79a 0%, #25d366 50%, #128c7e 100%) !important;
}

/* أيقونة الدردشة */
.chat-icon {
    font-size: 1.8rem !important;
    animation: chatPulse 3s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 10 !important;
    position: relative !important;
}

/* إشعار الدردشة */
.chat-notification {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #ff4757 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid white !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4) !important;
    animation: notificationPulse 2s ease-in-out infinite !important;
    z-index: 11 !important;
}

/* رسوم متحركة للدردشة */
@keyframes chatPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* تصميم متجاوب للدردشة */
@media (max-width: 768px) {
    .chat-toggle {
        bottom: 135px !important;
        left: 15px !important;
        width: 55px !important;
        height: 55px !important;
    }
    
    .chat-icon {
        font-size: 1.6rem !important;
    }
    
    .chat-notification {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
        top: -6px !important;
        right: -6px !important;
    }
}/* ════
═══════════════════════════════════════════════════════
   💬 REDESIGNED CHAT SYSTEM - BLUE & WHITE THEME
   ═══════════════════════════════════════════════════════════ */

/* إعادة تصميم زر الدردشة بالألوان الزرقاء */
.chat-toggle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.4),
        0 4px 15px rgba(29, 78, 216, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
}

.chat-toggle:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%) !important;
    box-shadow: 
        0 15px 40px rgba(59, 130, 246, 0.6),
        0 8px 25px rgba(29, 78, 216, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1) !important;
}

/* نافذة الدردشة - تصميم أزرق وأبيض */
.chat-window {
    position: fixed;
    bottom: 220px;
    left: 20px;
    width: 380px;
    height: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 
        0 25px 70px rgba(59, 130, 246, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1004;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* رأس نافذة الدردشة - أزرق أنيق */
.chat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.1) 50%, 
                transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
    pointer-events: none;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-agent-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-status {
    font-size: 0.85rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    animation: statusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* منطقة الرسائل - خلفية بيضاء أنيقة */
.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* الرسائل - تصميم أزرق وأبيض */
.message {
    max-width: 85%;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: messageSlideIn 0.3s ease-out;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.message.bot {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.message.bot::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 2px;
}

.message.user {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    text-align: right;
}

/* منطقة الكتابة - تصميم أبيض أنيق */
.chat-input-area {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 0 0 20px 20px;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 25px;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    resize: none;
    max-height: 100px;
    min-height: 45px;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    background: white;
    color: #1e293b;
}

.chat-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.chat-input::placeholder {
    color: #94a3b8;
}

.chat-send {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* الردود السريعة - تصميم أزرق */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.quick-reply {
    background: white;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.75rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.quick-reply:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* مؤشر الكتابة - تصميم أزرق */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    max-width: 100px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.typing-indicator::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 2px;
}

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

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    animation: typingDot 1.4s ease-in-out infinite;
}

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

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

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* التصميم المتجاوب للدردشة */
@media (max-width: 768px) {
    .chat-window {
        bottom: 205px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100vw - 30px);
        height: 450px;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .chat-agent-info h4 {
        font-size: 1rem;
    }
    
    .chat-status {
        font-size: 0.8rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-input-area {
        padding: 1rem;
    }
    
    .quick-replies {
        margin: 0.75rem 1rem;
        padding-top: 0.75rem;
    }
}