:root {
    scroll-behavior: smooth;
    --primary-color: #6a11cb;
            --secondary-color: #2575fc;
            --accent-color: #ff9800;
            --text-color: #333;
            --light-bg: #f8f9fa;
            --white: #ffffff;
            --dark-bg: #343a40;
            --border-radius: 10px;
            --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Cairo', sans-serif;
            color: var(--text-color);
            background-color: var(--light-bg);
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header Styles */
        header {
            background-color: var(--white);
            box-shadow: var(--box-shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-color);
            display: flex;
            align-items: center;
        }

        .logo i {
            margin-left: 10px;
            color: var(--secondary-color);
        }

        .nav-menu {
            display: flex;
            align-items: center;
        }

        .nav-menu li {
            margin-right: 20px;
        }

        .nav-menu a {
            font-weight: 500;
            transition: var(--transition);
        }

        .nav-menu a:hover {
            color: var(--primary-color);
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 12px 25px; /* زيادة حجم الأزرار */
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: inline-block;
            text-align: center;
            font-size: 1.05rem; /* زيادة حجم الخط */
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--white);
            border: none;
            min-width: 120px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .btn-primary:hover {
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: var(--white);
        }

        .mobile-menu-btn {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--white);
            padding: 80px 0;
            text-align: center;
            border-radius: var(--border-radius);
            margin: 30px 0;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            font-weight: 800;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .btn-secondary {
            background-color: var(--white);
            color: var(--primary-color);
            border: none;
        }

        .btn-secondary:hover {
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        /* Features Section */
        .features {
            padding: 80px 0;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 50px;
            position: relative;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 100px;
            height: 4px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            margin: 15px auto 0;
            border-radius: 2px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .feature-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 30px;
            text-align: center;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .feature-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            color: var(--primary-color);
        }

        .feature-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .feature-description {
            color: #666;
        }

        /* Courses Section */
        .courses {
            padding: 80px 0;
            background-color: var(--light-bg);
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .course-card {
            background-color: var(--white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            position: relative;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .course-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(106, 17, 203, 0.2);
            border-color: rgba(106, 17, 203, 0.1);
        }

        .course-image {
            height: 200px;
            background-color: #f8f9fa;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            transition: all 0.3s ease;
            border-bottom: 3px solid var(--primary-color);
        }
        
        .course-card:hover .course-image {
            transform: scale(1.05);
            background-size: 105% auto;
        }

        .course-content {
            padding: 20px;
        }

        .course-tag {
            display: inline-block;
            background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
            color: var(--primary-color);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-bottom: 10px;
            font-weight: 600;
            box-shadow: 0 2px 5px rgba(106, 17, 203, 0.1);
        }

        .course-title {
            font-size: 1.3rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .course-description {
            color: #666;
            margin-bottom: 15px;
        }

        .course-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #eee;
            padding-top: 15px;
            margin-top: 15px;
        }

        .course-price {
            font-weight: 700;
            color: var(--primary-color);
        }
        
        /* Language Levels Styles */
        .language-levels {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: 15px 0;
        }

        .level-item {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 8px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: all 0.3s ease;
        }

        .level-item:hover {
            background-color: #e9ecef;
            transform: translateY(-2px);
        }

        .level-name {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .level-price {
            font-size: 0.9rem;
            color: #495057;
        }

        /* Registration Section */
        .registration {
            padding: 80px 0;
            background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
            color: var(--white);
            text-align: center;
            border-radius: var(--border-radius);
            margin: 30px 0;
        }

        .registration-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .registration h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .registration p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            overflow-y: auto;
            padding: 0;
        }

        .modal.show {
            display: flex;
            align-items: flex-start;
            justify-content: center;
        }

        .modal-content {
            background-color: var(--white);
            border-radius: var(--border-radius);
            max-width: 800px; /* تقليل العرض للتناسب مع المحتوى */
            width: 90%; /* إضافة عرض نسبي للشاشات الصغيرة */
            margin: 30px auto;
            position: relative;
            animation: modalSlideIn 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }

        @keyframes modalSlideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .close-modal {
            font-size: 1.5rem;
            cursor: pointer;
            color: #999;
            transition: var(--transition);
        }

        .close-modal:hover {
            color: var(--primary-color);
        }

        .modal-body {
            padding: 20px;
            padding-bottom: 80px; /* إضافة مساحة أسفل المحتوى للأزرار */
            max-height: 70vh;
            overflow-y: auto;
        }

        /* Registration Form */
        .form-progress {
            display: flex;
            justify-content: space-between;
            margin-bottom: 30px;
            position: relative;
        }
        
        .error-message {
            color: #ff3860;
            font-size: 0.9rem;
            margin-top: 5px;
            animation: fadeIn 0.3s ease-in-out;
            font-weight: 500;
            padding: 5px 0;
        }

        .progress-step {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #eee;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            position: relative;
            z-index: 1;
        }

        .progress-step.active {
            background-color: var(--primary-color);
            color: var(--white);
        }

        .progress-step.completed {
            background-color: var(--secondary-color);
            color: var(--white);
        }

        .progress-line {
            position: absolute;
            top: 15px;
            height: 2px;
            background-color: #eee;
            width: calc(100% - 60px);
            left: 30px;
        }

        .progress-line.active {
            background-color: var(--secondary-color);
        }

        .form-step {
            display: none;
            padding: 30px;
            background-color: #fff;
            border-radius: var(--border-radius);
            margin-bottom: 20px;
            min-height: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            width: 100%;
            box-sizing: border-box;
        }

        .form-step.active {
            display: block;
            animation: fadeIn 0.5s ease-in-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .form-control {
            width: 100%;
            padding: 14px 18px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-family: 'Cairo', sans-serif;
            font-size: 1.05rem;
            transition: var(--transition);
            background-color: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            box-sizing: border-box;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.15);
        }
        
        .form-control.invalid {
            border-color: #ff3860;
            animation: shake 0.5s ease-in-out;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-5px); }
            40%, 80% { transform: translateX(5px); }
        }

        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 20px;
        }

        .form-footer {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            padding: 20px 30px;
            border-top: 1px solid #eee;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: #fff;
            border-radius: 0 0 var(--border-radius) var(--border-radius);
        }

        .form-check {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .form-check-input {
            margin-left: 10px;
        }

        /* Course Selection */
        .course-selection {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 25px;
        }

        .course-option {
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            padding: 20px;
            cursor: pointer;
            transition: var(--transition);
            background-color: white;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .course-option:hover {
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .course-option.invalid {
            border-color: #ff3860;
            animation: shake 0.5s ease-in-out;
        }

        .course-option.active {
            border-color: var(--primary-color);
            background-color: rgba(106, 17, 203, 0.05);
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
            transform: translateY(-3px);
        }
        
        /* تنسيق خيارات مستويات اللغة النشطة */
        .level-option.active {
            border-color: var(--primary-color);
            background-color: rgba(106, 17, 203, 0.05);
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
            transform: translateY(-3px);
        }

        .course-option-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .course-option-title {
            font-weight: 600;
            color: var(--primary-color);
        }

        .course-option-price {
            font-weight: 700;
        }

        /* File Upload */
        .file-upload {
            border: 2px dashed #ddd;
            border-radius: var(--border-radius);
            padding: 30px;
            text-align: center;
            margin-bottom: 20px;
            transition: var(--transition);
            cursor: pointer;
        }

        .file-upload:hover {
            border-color: var(--primary-color);
        }

        .file-upload-icon {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .file-upload-text {
            margin-bottom: 10px;
        }

        .file-upload-info {
            font-size: 0.9rem;
            color: #666;
        }

        /* Footer */
        footer {
            background-color: var(--dark-bg);
            color: var(--white);
            padding: 60px 0 30px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .footer-logo {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 20px;
            display: inline-block;
        }

        .footer-description {
            margin-bottom: 20px;
            opacity: 0.8;
        }

        .footer-social {
            display: flex;
            gap: 15px;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .social-icon:hover {
            background-color: var(--primary-color);
        }

        .footer-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 20px;
            position: relative;
        }

        .footer-title::after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background-color: var(--primary-color);
            margin-top: 10px;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            opacity: 0.8;
            transition: var(--transition);
        }

        .footer-links a:hover {
            opacity: 1;
            color: var(--primary-color);
        }

        .footer-contact li {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
        }

        .contact-icon {
            margin-left: 15px;
            color: var(--primary-color);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
            font-size: 0.9rem;
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                padding: 15px;
            }

            .logo {
                margin-bottom: 15px;
            }

            .nav-menu {
                margin-bottom: 15px;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .modal-content {
                margin: 0 15px;
                width: 95%;
                max-width: 100%;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .course-selection {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .modal-body {
                padding: 20px;
            }
            
            .form-progress {
                margin-bottom: 20px;
            }
            
            .progress-step {
                width: 25px;
                height: 25px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 576px) {
            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }
            
            .modal-content {
                width: 98%;
                margin: 0 auto;
            }
            
            .modal-body {
                padding: 15px;
            }
            
            .form-control {
                padding: 12px 15px;
            }
            
            .btn {
                padding: 10px 20px;
                font-size: 1rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .feature-card {
                padding: 20px;
            }

            .feature-icon {
                font-size: 2.5rem;
            }

            .feature-title {
                font-size: 1.3rem;
            }

            .btn {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
        }

        /* Animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Telegram Button Style */
        .btn-telegram-join {
            background: linear-gradient(135deg, #0088cc 0%, #2575fc 100%);
            color: var(--white);
            padding: 12px 25px;
            border-radius: var(--border-radius);
            font-weight: 600;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
            text-decoration: none;
            margin-top: 5px;
        }

        .btn-telegram-join:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
            color: var(--white);
        }

        .btn-telegram-join i {
            font-size: 1.2em;
        }

        .animate-fadeInUp {
            animation: fadeInUp 0.5s ease forwards;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        .invalid {
            border-color: #ff3860 !important;
            animation: shake 0.5s;
        }
        
        /* إضافة مسافات بين الأقسام */
        .section-divider {
            height: 50px;
            width: 100%;
            clear: both;
        }
        
        /* تصميم جديد للمراحل */
        .stages-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin: 40px 0;
        }

        .stage-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            position: relative;
            transition: all 0.3s ease;
            text-align: center;
            padding: 30px 20px;
            border-top: 5px solid var(--primary-color);
        }

        .stage-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .stage-number {
            position: absolute;
            top: -15px;
            right: 20px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
        }

        .stage-content {
            padding-top: 15px;
        }

        .stage-content h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .stage-content p {
            color: #666;
            margin-bottom: 20px;
        }

        .stage-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            font-size: 30px;
            color: var(--primary-color);
            transition: all 0.3s ease;
        }

        .stage-card:hover .stage-icon {
            transform: scale(1.1);
            background: linear-gradient(135deg, rgba(106, 17, 203, 0.2) 0%, rgba(37, 117, 252, 0.2) 100%);
        }

        .stage-card .badge {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            display: inline-block;
            margin-top: 10px;
            box-shadow: 0 3px 10px rgba(106, 17, 203, 0.2);
            transition: all 0.3s ease;
        }

        .stage-card:hover .badge {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
        }

        @media (max-width: 768px) {
            .stages-grid {
                grid-template-columns: 1fr;
            }
        }

        /* تحسين المسافات بين الأقسام */
        section {
            margin-bottom: 30px;
            padding-bottom: 30px;
        }
        /* تحسينات قسم برنامج تعليم البرمجة للأطفال */
        .kids-programming-section {
            background-color: #f8f9fa;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            padding: 40px;
            margin-bottom: 50px;
        }

        .modern-timeline .timeline-item {
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            margin-bottom: 20px;
            overflow: hidden;
            border-right: 5px solid var(--primary-color);
        }

        .card-hover {
            transition: all 0.3s ease;
        }

        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .modern-form {
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            padding: 30px;
            margin-top: 40px;
        }

        .form-title {
            color: var(--primary-color);
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }

        .form-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
        }

        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 15px;
        }

        .form-row .form-group {
            flex: 1;
            min-width: 250px;
        }

        .btn-animated {
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .btn-animated:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .btn-animated:before {
            content: '';
            position: absolute;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.4s ease-in-out;
            transform: skewX(-15deg);
        }

        .btn-animated:hover:before {
            right: 100%;
        }

        .features-title {
            text-align: center;
            margin: 40px 0 30px;
            color: var(--primary-color);
            position: relative;
            padding-bottom: 15px;
        }

        .features-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
        }

        .modern-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        .feature-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            text-align: center;
            position: relative;
            z-index: 1;
            overflow: hidden;
        }

        .feature-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 24px;
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
        }

        .feature-card h4 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .feature-card p {
            color: #666;
            line-height: 1.6;
        }

        .feature-card:before {
            content: '';
            position: absolute;
            top: -10px;
            right: -10px;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            opacity: 0.1;
            border-radius: 50%;
            z-index: -1;
            transition: all 0.5s ease;
        }

        .feature-card:hover:before {
            transform: scale(10);
            opacity: 0.05;
        }
        /* Chat Bot Styles */
        #chatbot-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 10000;
            font-family: 'Cairo', sans-serif;
        }

        .chat-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(106, 17, 203, 0.3);
            transition: all 0.3s ease;
            position: relative;
            animation: pulse 2s infinite;
        }

        .chat-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(106, 17, 203, 0.4);
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 4px 20px rgba(106, 17, 203, 0.3), 0 0 0 0 rgba(106, 17, 203, 0.7);
            }
            70% {
                box-shadow: 0 4px 20px rgba(106, 17, 203, 0.3), 0 0 0 10px rgba(106, 17, 203, 0);
            }
            100% {
                box-shadow: 0 4px 20px rgba(106, 17, 203, 0.3), 0 0 0 0 rgba(106, 17, 203, 0);
            }
        }

        .chat-tooltip {
            position: absolute;
            bottom: 70px;
            right: 0;
            background-color: var(--dark-bg);
            color: white;
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            white-space: nowrap;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .chat-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            right: 20px;
            border: 6px solid transparent;
            border-top-color: var(--dark-bg);
        }

        .chat-icon:hover .chat-tooltip {
            opacity: 1;
            transform: translateY(0);
        }

        .chat-window {
            position: absolute;
            bottom: 80px;
            right: 0;
            width: 350px;
            height: 500px;
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            display: none;
            flex-direction: column;
            overflow: hidden;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        .chat-window.active {
            opacity: 1;
            transform: translateY(0);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .chat-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-header-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .bot-avatar {
            width: 35px;
            height: 35px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chat-header h3 {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
        }

        .status {
            font-size: 0.8rem;
            opacity: 0.9;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }

        .close-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .chat-messages {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            background-color: #f8f9fa;
        }

        .message {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            animation: fadeInMessage 0.3s ease;
        }

        @keyframes fadeInMessage {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message-avatar {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .bot-message .message-avatar {
            background-color: rgba(106, 17, 203, 0.1);
        }

        .user-message {
            flex-direction: row-reverse;
        }

        .user-message .message-avatar {
            background-color: rgba(37, 117, 252, 0.1);
        }

        .message-content {
            background-color: white;
            padding: 10px 15px;
            border-radius: 15px;
            max-width: 80%;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            line-height: 1.4;
        }

        .user-message .message-content {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
        }

        .message-content ul {
            margin: 10px 0 0 0;
            padding-right: 20px;
        }

        .message-content li {
            margin-bottom: 5px;
        }

        .quick-actions {
            padding: 10px 15px;
            background-color: white;
            border-top: 1px solid #eee;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .quick-btn {
            background-color: rgba(106, 17, 203, 0.1);
            color: var(--primary-color);
            border: 1px solid rgba(106, 17, 203, 0.2);
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Cairo', sans-serif;
        }

        .quick-btn:hover {
            background-color: var(--primary-color);
            color: white;
        }

        .chat-input-container {
            padding: 15px;
            background-color: white;
            border-top: 1px solid #eee;
            display: flex;
            gap: 10px;
        }

        #chat-input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 25px;
            outline: none;
            font-family: 'Cairo', sans-serif;
            transition: border-color 0.3s ease;
        }

        #chat-input:focus {
            border-color: var(--primary-color);
        }

        .send-btn {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        .send-btn:hover {
            transform: scale(1.1);
        }

        .send-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 10px 15px;
            background-color: white;
            border-radius: 15px;
            margin-bottom: 15px;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background-color: var(--primary-color);
            border-radius: 50%;
            animation: typingAnimation 1.4s infinite;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes typingAnimation {
            0%, 60%, 100% {
                transform: translateY(0);
                opacity: 0.4;
            }
            30% {
                transform: translateY(-10px);
                opacity: 1;
            }
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            #chatbot-container {
                bottom: 15px;
                right: 15px;
            }

            .chat-window {
                width: 300px;
                height: 450px;
                bottom: 70px;
            }

            .chat-icon {
                width: 55px;
                height: 55px;
            }
        }

        @media (max-width: 480px) {
            .chat-window {
                width: calc(100vw - 30px);
                right: -15px;
                height: 400px;
            }

            .quick-actions {
                flex-direction: column;
            }

            .quick-btn {
                text-align: center;
            }
        }

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-icon {
    font-size: 1rem;
}


/* Telegram Join Button */
.btn-telegram-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0088cc 0%, #005f8f 100%);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    margin-top: 5px;
    width: fit-content;
}

.btn-telegram-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
    background: linear-gradient(135deg, #0099e6 0%, #0077b3 100%);
}

.btn-telegram-join i {
    font-size: 1.2rem;
}

