@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
   font-family: "Tajawal", sans-serif;;
    background: linear-gradient(135deg, #ffffff 0%, #10173926 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
     font-family: "Tajawal", sans-serif;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 35px;
    text-align: center;
    position: relative;
     font-family: "Tajawal", sans-serif;
}

.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.7em;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
     font-family: "Tajawal", sans-serif;
}

.header h1 {
    font-size: 2.0em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
     font-family: "Tajawal", sans-serif;
}

.header-subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 500;
     font-family: "Tajawal", sans-serif;
}

.progress-container {
    background: #f0f0f0;
    padding: 18px 38px;
     font-family: "Tajawal", sans-serif;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
     font-family: "Tajawal", sans-serif;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
     font-family: "Tajawal", sans-serif;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-weight: bold;
     font-family: "Tajawal", sans-serif;
}

.content {
    padding: 38px;
     font-family: "Tajawal", sans-serif;
}

.welcome-screen {
    text-align: center;
    padding: 50px 30px;
    max-width: 700px;
    margin: 0 auto;
     font-family: "Tajawal", sans-serif;
}

.welcome-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

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

.welcome-screen h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-description {
    font-size: 1.15em;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    min-width: 140px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.15);
    border-color: #2a5298;
}

.feature-icon {
    font-size: 2.5em;
}

.feature-item span:last-child {
    font-size: 1em;
    color: #555;
    font-weight: 600;
}

.welcome-screen ul {
    text-align: right;
    margin: 30px auto;
    max-width: 500px;
    list-style: none;
}

.welcome-screen li {
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #667eea;
}

.welcome-screen li strong {
    color: #667eea;
}

.page-container {
    display: none;
}

.page-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.question-block {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e9ecef;
}

.circular-progress-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

.circular-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 12;
}

.progress-bar {
    fill: none;
    stroke: #1e3c72;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

.progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-number {
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.progress-total {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.progress-percentage {
    font-size: 1.2em;
    font-weight: 600;
    color: #2a5298;
}

.question-number {
    color: #667eea;
    font-weight: bold;
    margin-left: 10px;
}

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

.question-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.question-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    line-height: 1.5;
     font-family: "Tajawal", sans-serif;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
     font-family: "Tajawal", sans-serif;
}

.option {
    padding: 20px;
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.05em;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
     font-family: "Tajawal", sans-serif;
}

.option-icon {
    font-size: 1.4em;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.welcome-features{display:none}
.option-text {
    flex: 1;
}

.option:hover {
    background: #e9ecef;
    border-color: #2a5298;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.2);
}

.option:hover .option-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2);
}

.option.selected {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-color: #2a5298;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

.option.selected .option-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.btn-start {
    padding: 14px 40px;
    font-size: 1.1em;
}

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

.loading-screen {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.loading-screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.loading-content {
    max-width: 600px;
    margin: 0 auto;
}

.ai-brain {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.brain-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    animation: brainPulse 1.5s ease-in-out infinite;
}

.brain-circle:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.brain-circle:nth-child(2) {
    bottom: 0;
    left: 0;
    animation-delay: 0.5s;
}

.brain-circle:nth-child(3) {
    bottom: 0;
    right: 0;
    animation-delay: 1s;
}

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

.loading-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 30px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

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

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

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

.loading-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    width: 0%;
    animation: loadingProgress 4s ease-in-out forwards;
    border-radius: 10px;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    25% {
        width: 30%;
    }
    50% {
        width: 60%;
    }
    75% {
        width: 85%;
    }
    100% {
        width: 100%;
    }
}

.loading-status {
    font-size: 1.1em;
    color: #999;
    font-style: italic;
}

.results {
    display: none;
}

.results.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.results h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-intro {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.investment-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    margin: 30px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

/* حاوية الصورة */
.investment-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.investment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.investment-image[src] {
    animation: none;
    background: none;
}

.investment-card:hover .investment-image {
    transform: scale(1.1);
}

/* طبقة التغطية على الصورة */
.investment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
}

/* شارة الترتيب */
.rank-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    font-size: 1.3em;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    text-align: center;
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
    }
}

/* شارة النسبة المئوية */
.investment-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2.5em;
    font-weight: 900;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    }
}

/* محتوى البطاقة */
.investment-content {
    padding: 40px;
}

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

.investment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.investment-card:hover .investment-badge {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, currentColor);
}

.investment-card.gold {
    border-color: #FFD700;
    color: #FFD700;
}

.investment-card.gold::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.investment-card.oil {
    border-color: #2C3E50;
    color: #2C3E50;
}

.investment-card.oil::before {
    background: linear-gradient(90deg, #2C3E50, #34495e);
}

.investment-card.crypto {
    border-color: #F7931A;
    color: #F7931A;
}

.investment-card.crypto::before {
    background: linear-gradient(90deg, #F7931A, #FF6B35);
}

.investment-card.stocks {
    border-color: #00A86B;
    color: #00A86B;
}

.investment-card.stocks::before {
    background: linear-gradient(90deg, #00A86B, #00D084);
}

.investment-card.real-estate {
    border-color: #8B4513;
    color: #8B4513;
}

.investment-card.real-estate::before {
    background: linear-gradient(90deg, #8B4513, #A0522D);
}

/* تنسيقات الشركات الجديدة */
.investment-card.qatar-energy {
    border-color: #8B1538;
    color: #8B1538;
}

.investment-card.qatar-energy::before {
    background: linear-gradient(90deg, #8B1538, #A01B3F);
}

.investment-card.aramco {
    border-color: #006747;
    color: #006747;
}

.investment-card.aramco::before {
    background: linear-gradient(90deg, #006747, #008055);
}

.investment-card.salik {
    border-color: #0066CC;
    color: #0066CC;
}

.investment-card.salik::before {
    background: linear-gradient(90deg, #0066CC, #0080FF);
}

.investment-card.adnoc {
    border-color: #003366;
    color: #003366;
}

.investment-card.adnoc::before {
    background: linear-gradient(90deg, #003366, #004488);
}

.investment-card.ai {
    border-color: #9B59B6;
    color: #9B59B6;
}

.investment-card.ai::before {
    background: linear-gradient(90deg, #9B59B6, #8E44AD);
}

.investment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.investment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.investment-icon {
    font-size: 4em;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.investment-title {
    font-size: 2em;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.investment-percentage {
    font-size: 3.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

.investment-description {
    color: #666;
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: right;
}

.investment-pros {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.investment-pros h4 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.investment-pros h4::before {
    content: "✨";
    font-size: 1.2em;
}

.investment-pros ul {
    list-style: none;
    text-align: right;
    display: grid;
    gap: 12px;
}

.investment-pros li {
    padding: 12px 15px;
    color: #555;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-right: 3px solid #28a745;
}

.investment-pros li:hover {
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.1);
}

.investment-pros li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-left: 10px;
    font-size: 1.2em;
}

.register-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.register-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-title {
    font-size: 1.8em;
    color: #1e3c72;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
}

.modal-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
    font-family: 'Tajawal', sans-serif;
}

.af-form-wrapper {
    width: 100%;
}

.af-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.af-element {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.previewLabel {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-family: 'Tajawal', sans-serif;
}

.af-element input[type="text"],
.af-element input[type="email"],
.af-element input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.af-element input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.buttonContainer {
    margin-top: 10px;
}

.af-element input[type="submit"] {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Tajawal', sans-serif;
}

.af-element input[type="submit"]:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.4);
}

/* Country Selection Modal */
.country-modal {
    max-width: 600px;
}

.country-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.country-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
}

.country-btn:hover {
    border-color: #1e3c72;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.2);
}

.country-flag {
    font-size: 3em;
}

.country-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.2em;
    }

    .header-subtitle {
    font-size: 14px;
    }

    .header-badge {
        font-size: 0.8em;
        padding: 6px 15px;
    }

    .content {
        padding: 20px;
    }

    .question-title {
        font-size: 17px;
    }

    .circular-progress-container {
        width: 150px;
        height: 150px;
        margin-bottom: 30px;
    }

    .progress-number {
        font-size: 2.5em;
    }

    .progress-total {
        font-size: 0.8em;
    }

    .progress-percentage {
        font-size: 1em;
    }

    .question-image {
        height: 200px;
    }

    .question-block {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .investment-percentage {
        font-size: 2.5em;
    }

    .option {
        padding: 8px;
        font-size: 14px;
        gap: 6px;
    
    }

    .option-icon {
        font-size: 1.5em;
    }

    .option-text {
        font-size: 0.95em;
    }

    .investment-card {
        padding: 0;
        margin: 20px 0;
    }
    
    .investment-image-container {
        height: 200px;
    }
    
    .investment-content {
        padding: 25px;
    }
    
    .rank-badge {
        font-size: 0.9em;
        padding: 8px 15px;
    }
    
    .investment-badge {
        font-size: 1.8em;
        padding: 10px 20px;
    }
    
    .investment-icon {
        font-size: 2.5em;
    }
    
    .investment-title {
        font-size: 1.3em;
    }

    .investment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .investment-info {
        width: 100%;
    }

    .investment-icon {
        font-size: 3em;
    }

    .investment-title {
        font-size: 1.5em;
    }

    .investment-percentage {
        font-size: 2.8em !important;
        align-self: flex-end;
    }

    .investment-description {
        font-size: 1em;
    }

    .investment-pros {
        padding: 20px;
    }

    .investment-pros h4 {
        font-size: 1.1em;
    }

    .investment-pros li {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .results h2 {
        font-size: 20px;
    }

    .results-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .loading-screen {
        padding: 40px 20px;
    }

    .ai-brain {
        width: 100px;
        height: 100px;
        margin-bottom: 30px;
    }

    .brain-circle {
        width: 30px;
        height: 30px;
    }

    .loading-title {
        font-size: 17px;
    }

    .loading-text {
        font-size: 1.1em;
    }

    .loading-status {
        font-size: 1em;
    }

    .welcome-screen {
        padding: 40px 20px;
    }

    .welcome-icon {
        font-size: 4em;
    }

    .welcome-screen h2 {
        font-size: 17px;
    }

    .welcome-description {
        font-size: 1em;
    }

    .welcome-features {
        gap: 15px;
    }

    .feature-item {
        min-width: 100px;
        padding: 15px;
    }

    .feature-icon {
        font-size: 2em;
    }

    .feature-item span:last-child {
        font-size: 0.9em;
    }

    .btn-start {
              padding: 12px 30px;
        font-size: 1em;
        font-family: 'Tajawal';
        width: 100%;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }

    .modal-title {
        font-size: 1.3em;
    }

    .modal-description {
        font-size: 0.95em;
    }

    .register-btn {
        font-size: 1em;
        padding: 12px 20px;
    }

    .af-element input[type="text"],
    .af-element input[type="email"],
    .af-element input[type="number"] {
        font-size: 0.95em;
    }

    .af-element input[type="submit"] {
        font-size: 1em;
    }

    .country-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .country-btn {
        padding: 15px;
    }

    .country-flag {
        font-size: 2.5em;
    }

    .country-name {
        font-size: 1em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .option {
        font-size: 1em;
        padding: 18px;
    }
}

/* تنسيقات النصائح */
.advice-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    margin-top: 30px;
    padding: 0 20px;
}

.advice-container.show {
    opacity: 1;
    transform: translateY(0);
}

.advice-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.advice-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

.advice-text {
    color: white;
    font-size: 1.2em;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.continue-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.continue-btn:active {
    transform: translateY(-1px);
}

/* تنسيقات الموبايل للنصائح */
@media (max-width: 768px) {
    .advice-content {
        padding: 25px 20px;
    }
    
    .advice-text {
        font-size: 1em;
        line-height: 1.6;
    }
    
    .continue-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}
