 @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
              background: radial-gradient(
    circle at bottom right,
    #e0f7ff48 0%,      /* أزرق سماوي فاتح جدًا – النقطة المضيئة */
    #66c2ffb6 5%,      /* أزرق سماوي متوسط */
    #005e991f 100%     /* أزرق داكن للخلفية */
  );
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;

            pointer-events: none;
            z-index: 0;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .header {
            text-align: center;
            color: white;
            margin-bottom: 50px;
            animation: fadeInDown 0.8s ease;
        }

        .header h1 {
          
            color: black;
           
        }
        .header{
    width: 100%;
    padding-bottom: 50px;
}

.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: #fff;
    position: relative;
}

.nav .logo{
    width: 20%;
}

.nav .logo a{
    text-decoration: none;
    font-size: 30px;
    color: #858cec;
    font-weight: bold;
}

.nav ul{
    display: flex;
    justify-content: start;
    align-items: center;
    list-style-type: none;
    width: 80%;
    transition: 0.4s ease;
}

.nav ul li{
    padding: 0px 20px;
    font-size: 17px;
}

.nav ul li:hover{
    cursor: pointer;
    color: rgb(78, 38, 255);
}

#li_2 select,
#li_3 select{
    background-color: inherit;
    font-family: 'Cairo', sans-serif;
    border: none;
    font-size: 16px;
    text-align: center;
    outline: none;
}

li a{
    text-decoration: none;
    color: #000;
}

/* زر تسجيل الدخول */
.sin{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 93px;
}

.sin button{
    color: white;
    font-size: 13px;
    padding: 7px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: rgb(78, 38, 255);
    font-family: 'Cairo', sans-serif;
    transition: 0.3s;
}

.sin button:hover{
    background-color: #858cec;
}

.burger{
    display: none;
    cursor: pointer;
}

.burger i{
    font-size: 28px;
}

        .header p {
            font-size: 1.2rem;
            opacity: 0.95;
            text-shadow: 0 2px 10px rgba(0,0,0,0.2);
            font-weight: 400;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .card {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border-radius: 24px;
            padding: 45px;
            box-shadow: 
                0 20px 60px rgba(0,0,0,0.3),
                0 0 0 1px rgba(255,255,255,0.1) inset;
            margin-bottom: 30px;
            animation: fadeInUp 0.8s ease;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 
                0 25px 70px rgba(0,0,0,0.35),
                0 0 0 1px rgba(255,255,255,0.1) inset;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .input-group {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }

        .input-group input {
            flex: 1;
            padding: 18px 24px;
            border: 2px solid #e8eaf6;
            border-radius: 14px;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: #f8f9ff;
            font-family: 'Cairo', sans-serif;
        }

        .input-group input:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 
                0 0 0 4px rgba(102, 126, 234, 0.1),
                0 4px 12px rgba(102, 126, 234, 0.15);
            transform: translateY(-2px);
        }

        .input-group select {
            padding: 18px 24px;
            border: 2px solid #e8eaf6;
            border-radius: 14px;
            font-size: 1rem;
            background: #f8f9ff;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Cairo', sans-serif;
            font-weight: 600;
            min-width: 150px;
        }

        .input-group select:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 
                0 0 0 4px rgba(102, 126, 234, 0.1),
                0 4px 12px rgba(102, 126, 234, 0.15);
        }

        .input-group select:hover {
            border-color: #667eea;
            background: white;
        }

        .btn {
            padding: 18px 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 14px;
            font-size: 1.15rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            width: 100%;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
            font-family: 'Cairo', sans-serif;
        }

        .btn::before {
            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:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
        }

        .btn:active {
            transform: translateY(-1px);
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        }

        .loading {
            display: none;
            text-align: center;
            padding: 50px;
        }

        .loading.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .spinner {
            border: 5px solid #f0f0f0;
            border-top: 5px solid #667eea;
            border-right: 5px solid #764ba2;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
            margin: 0 auto 25px;
            position: relative;
        }

        .spinner::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 40px;
            height: 40px;
            border: 3px solid transparent;
            border-top: 3px solid #f093fb;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            animation: spin 0.8s linear infinite reverse;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading p {
            color: #666;
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 15px;
        }

        .results {
            display: none;
        }

        .results.active {
            display: block;
            animation: fadeInUp 0.6s ease;
        }

        .score-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 40px;
        }

        .score-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px 30px;
            border-radius: 20px;
            text-align: center;
            box-shadow: 
                0 15px 35px rgba(102, 126, 234, 0.4),
                0 5px 15px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .score-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
            animation: shimmer 3s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            50% { transform: translate(30px, 30px) rotate(180deg); }
        }

        .score-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 
                0 20px 45px rgba(102, 126, 234, 0.5),
                0 8px 20px rgba(0,0,0,0.15);
        }

        .score-card.mobile {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            box-shadow: 
                0 15px 35px rgba(245, 87, 108, 0.4),
                0 5px 15px rgba(0,0,0,0.1);
        }

        .score-card.desktop {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            box-shadow: 
                0 15px 35px rgba(79, 172, 254, 0.4),
                0 5px 15px rgba(0,0,0,0.1);
        }

        .score-value {
            font-size: 5rem;
            font-weight: 900;
            margin: 25px 0;
            text-shadow: 0 4px 20px rgba(0,0,0,0.3);
            position: relative;
            z-index: 1;
            animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes scaleIn {
            from {
                transform: scale(0);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .score-label {
            font-size: 1.3rem;
            opacity: 0.95;
            font-weight: 600;
            position: relative;
            z-index: 1;
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .metric-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
            padding: 25px;
            border-radius: 16px;
            border-right: 5px solid #667eea;
            box-shadow: 
                0 4px 15px rgba(0,0,0,0.08),
                0 0 0 1px rgba(102, 126, 234, 0.1) inset;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .metric-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
            transition: width 0.3s ease;
        }

        .metric-card:hover {
            transform: translateX(-5px) translateY(-3px);
            box-shadow: 
                0 8px 25px rgba(102, 126, 234, 0.2),
                0 0 0 1px rgba(102, 126, 234, 0.15) inset;
        }

        .metric-card:hover::before {
            width: 8px;
        }

        .metric-title {
            font-size: 1rem;
            color: #555;
            margin-bottom: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .metric-value {
            font-size: 1.8rem;
            font-weight: 800;
            color: #333;
            margin-bottom: 8px;
            font-family: 'Cairo', sans-serif;
        }

        .metric-description {
            font-size: 0.9rem;
            color: #777;
            margin-top: 8px;
            font-weight: 500;
        }

        .opportunities {
            margin-top: 40px;
        }

        .opportunities h3 {
            color: #333;
            margin-bottom: 25px;
            font-size: 1.8rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .opportunity-item {
            background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
            border-right: 5px solid #ffc107;
            padding: 20px;
            margin-bottom: 18px;
            border-radius: 14px;
            box-shadow: 
                0 4px 12px rgba(255, 193, 7, 0.2),
                0 0 0 1px rgba(255, 193, 7, 0.1) inset;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .opportunity-item::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
            transition: width 0.3s ease;
        }

        .opportunity-item:hover {
            transform: translateX(-5px);
            box-shadow: 
                0 6px 18px rgba(255, 193, 7, 0.3),
                0 0 0 1px rgba(255, 193, 7, 0.15) inset;
        }

        .opportunity-item:hover::before {
            width: 8px;
        }

        .opportunity-item h4 {
            color: #856404;
            margin-bottom: 10px;
            font-weight: 700;
            font-size: 1.1rem;
        }

        .opportunity-item p {
            color: #856404;
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 8px;
        }

        .opportunity-item strong {
            color: #f57c00;
            font-weight: 700;
        }

        .error {
            background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
            color: #c62828;
            padding: 20px 25px;
            border-radius: 14px;
            border-right: 5px solid #d32f2f;
            margin-top: 25px;
            display: none;
            box-shadow: 
                0 4px 12px rgba(211, 47, 47, 0.2),
                0 0 0 1px rgba(211, 47, 47, 0.1) inset;
            font-weight: 600;
            animation: shake 0.5s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        .error.active {
            display: block;
            animation: fadeIn 0.3s ease, shake 0.5s ease;
        }

        .api-key-note {
            background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
            color: #006064;
            padding: 18px 22px;
            border-radius: 14px;
            margin-bottom: 25px;
            border-right: 5px solid #00acc1;
            font-size: 0.95rem;
            line-height: 1.8;
            box-shadow: 
                0 4px 12px rgba(0, 172, 193, 0.15),
                0 0 0 1px rgba(0, 172, 193, 0.1) inset;
            font-weight: 500;
        }

        .api-key-note code {
            background: rgba(0, 172, 193, 0.1);
            padding: 3px 8px;
            border-radius: 6px;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            color: #00838f;
            font-weight: 600;
        }
        
.footer {
  background-color: #0d0d0d;
  color: #eee;
  padding: 60px 10%;
  font-family: "Cairo", sans-serif;
  direction: rtl;

}

.footer_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer_col {
  flex: 1 1 220px;
}

.footer_logo {
  color: #00d8ff;
  font-size: 26px;
  margin-bottom: 10px;
}

.footer_col h4 {
  color: #00d8ff;
  margin-bottom: 15px;
  font-size: 20px;
}

.footer_col ul {
  list-style: none;
  padding: 0;
}

.footer_col ul li {
  margin-bottom: 10px;
}

.footer_col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer_col ul li a:hover {
  color: #00d8ff;
}

.social_icons a {
  display: inline-block;
  background: #222;
  color: #00d8ff;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  border-radius: 50%;
  margin-right: 8px;
  transition: 0.3s;
}

.social_icons a:hover {
  background: #00d8ff;
  color: #000;
}

.footer_bottom {
  border-top: 1px solid #222;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  color: #aaa;
  font-size: 14px;
}

.footer_bottom span {
  color: #00d8ff;
}


        @media (max-width: 768px) {
            body {
                padding: 15px;
            }

            .header h1 {
                font-size: 2rem;
            }

            .header p {
                font-size: 1rem;
            }

            .input-group {
                flex-direction: column;
            }

            .card {
                padding: 25px;
                border-radius: 20px;
            }

            .score-value {
                font-size: 3.5rem;
            }

            .metrics-grid {
                grid-template-columns: 1fr;
            }

            .score-section {
                grid-template-columns: 1fr;
            }
            
  .nav .logo {
    width: 50%;
    padding: 10px 0px 10px 14px;
}
.nav .logo a {
  font-size: 20px;
}
 .nav {
    padding: 10px 20px !important;
  }
  .nav ul {
    position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        display: block;
        text-align: center;
        padding: 20px 0;
        transform: translateY(-400px);
        opacity: 0;
        pointer-events: none;
        border-top: 1px solid #eee;
  }
    .nav ul.show{
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav ul li{
        margin: 18px 0;
        font-size: 18px;
    }

    /* زر تسجيل الدخول داخل القائمة */
    .sin{
        margin-left: 0;
    }

    .burger{
        display: flex;
        align-items: center;
    }
.sin {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 50px 10px 0px;
    gap: 20px;
    width: auto;
}
        }

        @media (max-width: 480px) {
            .header h1 {
                font-size: 1.6rem;
            }

            .card {
                padding: 20px;
            }

            .score-value {
                font-size: 3rem;
            }
        }