          * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
            --secondary-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
            --success-gradient: linear-gradient(135deg, #FFD700 0%, #FFED4E 100%);
            --warning-gradient: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
            --error-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
            --glass-bg: rgba(0, 0, 0, 0.3);
            --glass-border: rgba(255, 215, 0, 0.2);
            --dark-glass: rgba(0, 0, 0, 0.5);
            --text-primary: #FFD700;
            --text-secondary: #FFA500;
            --text-light: #FFED4E;
            --bg-primary: #000000;
            --bg-secondary: #1a1a1a;
            --white: #FFD700;
            --shadow-soft: 0 10px 40px rgba(255, 215, 0, 0.2);
            --shadow-intense: 0 20px 60px rgba(255, 215, 0, 0.3);
            --border-radius: 20px;
            --border-radius-lg: 30px;
            --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            --animation-speed: 0.6s;
        }

        body {
            font-family: 'Cairo', 'Poppins', sans-serif;
            background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            color: var(--text-primary);
            height: 100vh;
            overflow: hidden;
            position: relative;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Animated Background Elements */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .floating-shape {
            position: absolute;
            border-radius: 50%;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            animation: float 20s ease-in-out infinite;
        }

        .shape-1 {
            width: 300px;
            height: 300px;
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 200px;
            height: 200px;
            top: 60%;
            right: 15%;
            animation-delay: -5s;
        }

        .shape-3 {
            width: 150px;
            height: 150px;
            bottom: 20%;
            left: 20%;
            animation-delay: -10s;
        }

        .shape-4 {
            width: 250px;
            height: 250px;
            top: 30%;
            right: 30%;
            animation-delay: -15s;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
                opacity: 0.5;
            }
            25% {
                transform: translateY(-30px) rotate(90deg);
                opacity: 0.8;
            }
            50% {
                transform: translateY(-20px) rotate(180deg);
                opacity: 0.6;
            }
            75% {
                transform: translateY(-40px) rotate(270deg);
                opacity: 0.9;
            }
        }

        /* Mobile Sidebar */
        .mobile-sidebar {
            position: fixed;
            top: 0;
            right: -300px;
            width: 300px;
            height: 100vh;
            background: var(--glass-bg);
            backdrop-filter: blur(25px);
            border-left: 1px solid var(--glass-border);
            z-index: 10000;
            transition: var(--transition);
            padding: 20px;
            overflow-y: auto;
        }

        .mobile-sidebar.open {
            right: 0;
        }

        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--glass-border);
            margin-bottom: 20px;
        }

        .sidebar-title {
            color: var(--white);
            font-size: 18px;
            font-weight: 700;
        }

        .close-sidebar {
            width: 40px;
            height: 40px;
            border: none;
            background: var(--glass-bg);
            border-radius: 50%;
            color: var(--white);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-sidebar:hover {
            background: var(--primary-gradient);
            transform: scale(1.1);
        }

        .nav-links {
            list-style: none;
            padding: 0;
        }

        .nav-links li {
            margin-bottom: 15px;
        }

        .nav-links a {
            color: var(--white);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            border-radius: 15px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            transition: var(--transition);
            font-weight: 500;
        }

        .nav-links a:hover {
            background: var(--primary-gradient);
            transform: translateX(-5px);
            box-shadow: var(--shadow-soft);
            color: #000;
        }

        .nav-links i {
            font-size: 18px;
            width: 25px;
            text-align: center;
        }

        /* Header */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 15px 0;
            background: var(--glass-bg);
            backdrop-filter: blur(25px);
            border-bottom: 1px solid var(--glass-border);
            height: 80px;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 100%;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
            text-decoration: none;
            color: var(--white);
            font-weight: 800;
            font-size: 24px;
            transition: var(--transition);
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: var(--primary-gradient);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #000;
            box-shadow: var(--shadow-soft);
            transition: var(--transition);
        }

        .logo:hover .logo-icon {
            transform: rotate(360deg);
            box-shadow: var(--shadow-intense);
        }

        /* Desktop Navigation */
        .desktop-nav {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .desktop-nav a {
            color: var(--white);
            text-decoration: none;
            font-weight: 500;
            padding: 10px 15px;
            border-radius: 10px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .desktop-nav a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            transition: var(--transition);
            z-index: -1;
        }

        .desktop-nav a:hover::before {
            left: 0;
        }

        .desktop-nav a:hover {
            transform: translateY(-2px);
            color: #000;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .action-btn {
            width: 45px;
            height: 45px;
            border: none;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--white);
            font-size: 16px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .action-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            transition: var(--transition);
            z-index: -1;
        }

        .action-btn:hover::before {
            left: 0;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-intense);
            color: #000;
        }

        .menu-toggle {
            display: none;
        }

        .status-badge {
            background: var(--success-gradient);
            color: #000;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-soft);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.9; }
        }

        .status-dot {
            width: 6px;
            height: 6px;
            background: #000;
            border-radius: 50%;
            animation: blink 1.5s ease-in-out infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        /* Main Chat Container */
        .main-chat-container {
            position: fixed;
            top: 80px;
            left: 0;
            right: 0;
            bottom: 0;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            background: var(--glass-bg);
            backdrop-filter: blur(25px);
            border-top: 1px solid var(--glass-border);
            z-index: 1;
        }

        /* Welcome Section */
        .welcome-section {
            padding: 40px 30px;
            text-align: center;
            border-bottom: 1px solid var(--glass-border);
            background: var(--dark-glass);
            backdrop-filter: blur(20px);
        }

        .welcome-hero {
            animation: fadeInUp var(--animation-speed) ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .welcome-icon {
            width: 80px;
            height: 80px;
            background: var(--primary-gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 30px;
            color: #000;
            box-shadow: var(--shadow-intense);
            animation: iconFloat 3s ease-in-out infinite;
            position: relative;
        }

        .welcome-icon::after {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: var(--secondary-gradient);
            border-radius: 50%;
            z-index: -1;
            animation: iconGlow 2s ease-in-out infinite alternate;
        }

        @keyframes iconFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-8px); }
        }

        @keyframes iconGlow {
            0% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .welcome-title {
            font-size: 32px;
            font-weight: 800;
            color: var(--white);
            margin-bottom: 10px;
            text-shadow: 2px 2px 20px rgba(255,215,0,0.3);
            background: linear-gradient(135deg, #FFD700 0%, #FFED4E 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .welcome-subtitle {
            font-size: 16px;
            color: rgba(255,215,0,0.9);
            margin-bottom: 25px;
            font-weight: 400;
            text-shadow: 1px 1px 10px rgba(255,215,0,0.2);
        }

        /* Quick Actions */
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .quick-action {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 15px 20px;
            cursor: pointer;
            transition: var(--transition);
            color: var(--white);
            font-weight: 600;
            font-size: 14px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .quick-action::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-gradient);
            transition: var(--transition);
            z-index: -1;
        }

        .quick-action:hover::before {
            left: 0;
        }

        .quick-action:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: var(--shadow-intense);
            color: #000;
        }

        .quick-action-icon {
            font-size: 18px;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--secondary-gradient);
            border-radius: 10px;
            flex-shrink: 0;
            color: var(--white);
        }

        /* Messages Area */
        .chat-messages {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
            scroll-behavior: smooth;
            min-height: 0;
        }

        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: var(--glass-bg);
            border-radius: 10px;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: var(--primary-gradient);
            border-radius: 10px;
        }

        .message {
            margin-bottom: 20px;
            animation: messageSlide var(--animation-speed) ease-out;
        }

        @keyframes messageSlide {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .message-content {
            max-width: 75%;
            padding: 15px 20px;
            border-radius: var(--border-radius);
            font-size: 15px;
            line-height: 1.6;
            position: relative;
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            word-wrap: break-word;
        }

        .message.user .message-content {
            background: var(--primary-gradient);
            color: #000;
            margin-left: auto;
            box-shadow: var(--shadow-soft);
            border-bottom-right-radius: 5px;
            font-weight: 600;
        }

        .message.bot .message-content {
            background: var(--glass-bg);
            color: var(--white);
            margin-right: auto;
            box-shadow: var(--shadow-soft);
            border-bottom-left-radius: 5px;
        }

        .message-time {
            font-size: 11px;
            color: rgba(255,215,0,0.6);
            margin-top: 5px;
            text-align: center;
        }

        /* Typing Indicator */
        .typing-indicator {
            display: none;
            align-items: center;
            gap: 10px;
            color: rgba(255,215,0,0.8);
            font-size: 14px;
            padding: 12px 20px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: var(--border-radius);
            margin: 15px 30px;
            max-width: fit-content;
        }

        .typing-dots {
            display: flex;
            gap: 4px;
        }

        .typing-dots span {
            width: 6px;
            height: 6px;
            background: var(--white);
            border-radius: 50%;
            animation: typingDots 1.5s infinite ease-in-out;
        }

        .typing-dots span:nth-child(1) { animation-delay: -0.3s; }
        .typing-dots span:nth-child(2) { animation-delay: -0.15s; }
        .typing-dots span:nth-child(3) { animation-delay: 0s; }

        @keyframes typingDots {
            0%, 80%, 100% {
                transform: scale(0.8);
                opacity: 0.5;
            }
            40% {
                transform: scale(1.2);
                opacity: 1;
            }
        }

        /* Enhanced Chat Input - أكبر حجماً */
        .chat-input-container {
            padding: 25px 30px;
            border-top: 1px solid var(--glass-border);
            background: var(--dark-glass);
            backdrop-filter: blur(20px);
            position: relative;
        }

        .input-wrapper {
            display: flex;
            align-items: flex-end;
            gap: 15px;
            background: var(--glass-bg);
            border: 2px solid var(--glass-border);
            border-radius: 25px;
            padding: 20px 25px;
            transition: var(--transition);
            backdrop-filter: blur(20px);
            max-width: 100%;
            min-height: 80px;
        }

        .input-wrapper:focus-within {
            border-color: rgba(255,215,0,0.5);
            box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
        }

        .chat-input {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            font-size: 18px;
            font-family: inherit;
            color: var(--white);
            resize: none;
            min-height: 40px;
            max-height: 200px;
            overflow-y: auto;
            line-height: 1.5;
        }

        .chat-input::placeholder {
            color: rgba(255,215,0,0.6);
            font-size: 16px;
        }

        .input-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }

        .send-btn {
            width: 55px;
            height: 55px;
            background: var(--primary-gradient);
            border: none;
            border-radius: 50%;
            color: #000;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            font-size: 20px;
            box-shadow: var(--shadow-soft);
            flex-shrink: 0;
            font-weight: 600;
        }

        .send-btn:hover:not(:disabled) {
            transform: scale(1.1);
            box-shadow: var(--shadow-intense);
        }

        .send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .voice-btn {
            width: 45px;
            height: 45px;
            background: var(--success-gradient);
            border: none;
            border-radius: 50%;
            color: #000;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            font-size: 16px;
            box-shadow: var(--shadow-soft);
            font-weight: 600;
        }

        .voice-btn:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-intense);
        }

        .voice-btn.listening {
            animation: pulse 1s infinite;
            background: var(--error-gradient);
        }

        /* Loading Spinner */
        .loading-spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 215, 0, 0.3);
            border-top: 2px solid var(--white);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Notification */
        .notification {
            position: fixed;
            top: 100px;
            right: 30px;
            background: var(--glass-bg);
            backdrop-filter: blur(25px);
            border: 1px solid var(--glass-border);
            border-radius: var(--border-radius);
            padding: 15px 20px;
            box-shadow: var(--shadow-intense);
            z-index: 10000;
            animation: notificationSlide var(--animation-speed) ease-out;
            max-width: 320px;
            color: var(--white);
        }

        @keyframes notificationSlide {
            from {
                opacity: 0;
                transform: translateX(100%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .notification.success {
            border-left: 4px solid #FFD700;
        }

        .notification.error {
            border-left: 4px solid #FF6B6B;
        }

        /* Bot Response Formatting */
        .bot-response strong {
            color: #FFD700;
            font-weight: 700;
        }

        .bot-response {
            white-space: pre-line;
        }

        /* Hide welcome section when chat starts */
        .chat-started .welcome-section {
            display: none;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-container {
                padding: 0 20px;
            }

            .desktop-nav {
                display: none;
            }

            .menu-toggle {
                display: flex;
            }

            .logo {
                font-size: 18px;
            }

            .logo-icon {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .action-btn {
                width: 40px;
                height: 40px;
                font-size: 14px;
            }

            .main-chat-container {
                margin: 0 10px;
                border-radius: 0;
            }

            .welcome-section {
                padding: 30px 20px;
            }

            .welcome-title {
                font-size: 24px;
            }

            .welcome-subtitle {
                font-size: 14px;
            }

            .welcome-icon {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }

            .quick-actions {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .quick-action {
                padding: 12px 16px;
                font-size: 13px;
            }

            .chat-messages {
                padding: 20px 20px;
            }

            .message-content {
                max-width: 85%;
                padding: 12px 16px;
                font-size: 14px;
            }

            .chat-input-container {
                padding: 20px;
            }

            .input-wrapper {
                padding: 15px 20px;
                min-height: 70px;
            }

            .chat-input {
                font-size: 16px;
            }

            .send-btn {
                width: 50px;
                height: 50px;
                font-size: 18px;
            }

            .voice-btn {
                width: 40px;
                height: 40px;
                font-size: 14px;
            }

            .floating-shape {
                display: none;
            }

            .notification {
                right: 15px;
                left: 15px;
                max-width: none;
            }
        }

        /* Keyboard open state for mobile */
        @media (max-width: 768px) {
            .keyboard-open .main-chat-container {
                bottom: 0;
            }
            
            .keyboard-open .chat-input-container {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                z-index: 1001;
            }
        }

        /* Utility Classes */
        .hidden {
            display: none !important;
        }

        .fade-in {
            animation: fadeIn var(--animation-speed) ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Performance Optimizations */
        .gpu-accelerated {
            transform: translateZ(0);
            will-change: transform;
        }
         /* Utility Classes */
        .hidden {
            display: none !important;
        }

        .fade-in {
            animation: fadeIn var(--animation-speed) ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Performance Optimizations */
        .gpu-accelerated {
            transform: translateZ(0);
            will-change: transform;
        }
        /* Performance Optimization Styles */
        * {
            box-sizing: border-box;
        }

        .performance-optimized {
            contain: layout style paint;
            transform: translateZ(0);
            will-change: auto;
        }

        .gpu-layer {
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
            perspective: 1000px;
        }

        /* Memory efficient animations */
        .efficient-animation {
            animation-fill-mode: both;
            animation-play-state: paused;
        }

        .efficient-animation.active {
            animation-play-state: running;
        }

        /* Reduce repaints and reflows */
        .no-repaint {
            contain: layout style paint size;
        }

        /* Virtualization for long message lists */
        .virtual-scroll {
            overflow-y: auto;
            height: 100%;
            contain: strict;
        }

        /* Optimized floating shapes */
        .floating-shape {
            contain: layout style paint;
            pointer-events: none;
            transform: translate3d(0, 0, 0);
        }

        /* Debounced animations */
        .debounced-hover:hover {
            transition-delay: 0.1s;
        }

        /* Lazy load optimization */
        .lazy-load {
            content-visibility: auto;
            contain-intrinsic-size: 1px 500px;
        }

        /* Efficient gradients */
        .optimized-gradient {
            background-attachment: fixed;
            background-repeat: no-repeat;
            background-size: cover;
        }

        /* Memory management for messages */
        .message-container {
            max-height: 70vh;
            overflow-y: auto;
            scroll-behavior: smooth;
        }

        /* Efficient glass morphism */
        .glass-optimized {
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            will-change: auto;
        }

        /* Reduce animation complexity on mobile */
        @media (max-width: 768px) {
            .floating-shape {
                animation-duration: 10s;
                animation-timing-function: ease-out;
            }
            
            .complex-animation {
                animation: none;
            }
        }

        /* Prefers reduced motion */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* High contrast optimization */
        @media (prefers-contrast: high) {
            .glass-container {
                background: rgba(255, 255, 255, 0.9);
                color: #000;
            }
        }

        /* Battery optimization */
        @media (prefers-reduced-motion: reduce) {
            .bg-animation {
                display: none;
            }
        }
    