.top-scorer-alert {
    background: linear-gradient(90deg, #ffb347 0%, #ff6b6b 100%);
    color: #222;
    font-weight: bold;
    text-align: center;
    padding: 0.7rem 0.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #ff6b6b;
    position: relative;
    z-index: 1001;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px 0 rgba(255, 107, 107, 0.08);
}

.top-scorer-alert b {
    color: #d7263d;
}

.close-alert-btn {
    background: none;
    border: none;
    color: #d7263d;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.notifications-bar {
    width: 100%;
    background: linear-gradient(90deg, #00d9ff 0%, #ff6b6b 100%);
    color: #fff;
    text-align: center;
    padding: 0.7rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 999;
    position: relative;
}

.notifications-bar a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

.navbar {
    background: rgba(26, 26, 46, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d9ff;
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.nav-icon-item {
    list-style: none;
}

.nav-icon-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-icon-link:hover {
    color: #00d9ff !important;
    background: rgba(0, 217, 255, 0.1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-icon-item {
        display: inline-block;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2300d9ff" stroke-width="0.5" opacity="0.1"/></svg>'),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #00d9ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, #00d9ff, #00a8cc);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #00d9ff;
    border: 2px solid #00d9ff;
}

.btn-secondary:hover {
    background: #00d9ff;
    color: #1a1a2e;
}

.btn-upload {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
}

.btn-upload:hover {
    transform: scale(1.05);
}

.btn-analyze {
    background: linear-gradient(90deg, #f093fb, #f5576c);
    color: #fff;
    margin-top: 1rem;
}

.btn-add {
    background: linear-gradient(90deg, #11998e, #38ef7d);
    color: #fff;
    padding: 10px 20px;
}

.section {
    padding: 100px 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: #00d9ff;
}

.questions-section {
    background: rgba(22, 33, 62, 0.5);
}

.upload-area {
    background: rgba(255, 255, 255, 0.05);
    border: 3px dashed rgba(0, 217, 255, 0.5);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.upload-content i {
    font-size: 4rem;
    color: #00d9ff;
    margin-bottom: 1rem;
}

.upload-content h3 {
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: #888;
    margin-bottom: 1.5rem;
}

.preview-container {
    margin-top: 2rem;
    text-align: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ai-response {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.ai-response h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #00d9ff;
}

.response-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 217, 255, 0.3);
    border-top-color: #00d9ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.quiz-section {
    background: rgba(22, 33, 62, 0.5);
}

.quiz-subjects {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quiz-subject-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    min-width: 100px;
}

.quiz-subject-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.quiz-subject-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.quiz-subject-btn i {
    font-size: 1.5rem;
}

.quiz-start-screen {
    max-width: 500px;
    margin: 0 auto;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    text-align: center;
}

.start-screen-content .start-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.start-screen-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.start-screen-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.quiz-name-input {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.quiz-name-input label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-name-input input {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
}

.quiz-name-input input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.quiz-name-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.start-quiz-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.start-quiz-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.quiz-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quiz-info span:first-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00d9ff;
}

.quiz-progress {
    color: #888;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 217, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    color: #00d9ff;
    font-size: 1.2rem;
    font-weight: 700;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h3 {
    font-size: 1.4rem;
    line-height: 1.8;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    padding: 20px 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-option:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.quiz-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.quiz-option.correct {
    border-color: #38ef7d;
    background: rgba(56, 239, 125, 0.2);
}

.quiz-option.wrong {
    border-color: #ff5252;
    background: rgba(255, 82, 82, 0.2);
}

.option-letter {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.quiz-option.selected .option-letter {
    background: #667eea;
}

.quiz-option.correct .option-letter {
    background: #38ef7d;
    color: #1a1a2e;
}

.quiz-option.wrong .option-letter {
    background: #ff5252;
}

.quiz-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

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

.btn-submit {
    background: linear-gradient(90deg, #11998e, #38ef7d);
    color: #fff;
}

.quiz-result {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 50px;
}

.quiz-result .result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.quiz-result .result-icon i {
    color: #ffc107;
}

.quiz-result h2 {
    margin-bottom: 1.5rem;
}

.result-score {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 1rem;
}

.score-num {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d9ff, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-total {
    font-size: 1.5rem;
    color: #888;
}

.result-percentage {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.result-message {
    color: #888;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.essay-section {
    background: rgba(22, 33, 62, 0.3);
}

.essay-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .essay-container {
        grid-template-columns: 1fr;
    }
}

.essay-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #00d9ff;
}

.form-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s;
}

.form-group textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.3);
}

.form-group textarea::placeholder {
    color: #666;
}

.form-group input[type="number"] {
    width: 150px;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
}

.form-group input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.3);
}

.btn-correct {
    width: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    padding: 15px;
    font-size: 1.1rem;
}

.btn-correct:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.correction-result {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #38ef7d;
}

.score-display {
    display: flex;
    align-items: baseline;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    padding: 15px 25px;
    border-radius: 15px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.score-max {
    font-size: 1.2rem;
    opacity: 0.8;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
}

.detail-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.detail-item h4 .text-success {
    color: #38ef7d;
}

.detail-item h4 .text-danger {
    color: #ff5252;
}

.detail-item h4 .text-warning {
    color: #ffc107;
}

.detail-item p {
    color: #ccc;
    line-height: 1.8;
    white-space: pre-wrap;
}

.exams-section {
    background: rgba(16, 24, 48, 0.5);
}

.subjects-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.subject-tab {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.subject-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.subject-tab.active {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.exam-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.exam-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.exam-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.exam-icon i {
    font-size: 2rem;
    color: #667eea;
}

.exam-card[data-subject="physics"] .exam-icon i {
    color: #00d9ff;
}

.exam-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.exam-type {
    font-size: 0.85rem;
    color: #888;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
}

.btn-view {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    padding: 10px 25px;
    margin-top: auto;
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.coming-soon {
    color: #888;
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.questions-bank-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bank-question-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px 30px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s;
}

.bank-question-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
}

.bank-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.question-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.bank-question-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-right: 15px;
}

.bank-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.bank-option {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.bank-option:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.bank-option.correct {
    border-color: #38ef7d;
    background: rgba(56, 239, 125, 0.15);
}

.bank-option .option-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bank-option.correct .option-letter {
    background: #38ef7d;
    color: #1a1a2e;
}

.show-answer-btn {
    background: transparent;
    border: 2px solid rgba(0, 217, 255, 0.5);
    color: #00d9ff;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-answer-btn:hover {
    background: rgba(0, 217, 255, 0.1);
}

.no-questions {
    text-align: center;
    padding: 50px;
    color: #888;
}

.no-questions i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.exam-card[data-subject="physics"] .exam-icon,
.exam-card[data-subject="physics2"] .exam-icon {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 168, 204, 0.2));
}

.exam-card[data-subject="physics"] .exam-icon i,
.exam-card[data-subject="physics2"] .exam-icon i {
    color: #00d9ff;
}

.exam-card[data-subject="math1"] .exam-icon,
.exam-card[data-subject="math0"] .exam-icon {
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.2), rgba(17, 153, 142, 0.2));
}

.exam-card[data-subject="math1"] .exam-icon i,
.exam-card[data-subject="math0"] .exam-icon i {
    color: #38ef7d;
}

.exam-card[data-subject="it"] .exam-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.exam-card[data-subject="it"] .exam-icon i {
    color: #667eea;
}

.exam-card[data-subject="computing-history"] .exam-icon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
}

.exam-card[data-subject="computing-history"] .exam-icon i {
    color: #ffc107;
}

.exam-card[data-subject="computer-laws"] .exam-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(156, 39, 176, 0.2));
}

.exam-card[data-subject="computer-laws"] .exam-icon i {
    color: #e91e63;
}

.exam-card[data-subject="electronics"] .exam-icon {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(244, 67, 54, 0.2));
}

.exam-card[data-subject="electronics"] .exam-icon i {
    color: #ff5722;
}

.levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.level-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.level-card:hover {
    transform: translateY(-10px);
}

.level-1 {
    border-color: rgba(76, 175, 80, 0.5);
}

.level-1:hover {
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
}

.level-2 {
    border-color: rgba(33, 150, 243, 0.5);
}

.level-2:hover {
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

.level-3 {
    border-color: rgba(255, 193, 7, 0.5);
}

.level-3:hover {
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.2);
}

.level-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.level-1 .level-badge {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.level-2 .level-badge {
    background: linear-gradient(90deg, #2196f3, #03a9f4);
}

.level-3 .level-badge {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    color: #1a1a2e;
}

.level-badge i {
    font-size: 0.8rem;
}

.level-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.level-description {
    color: #888;
}

.participants-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 1.5rem;
}

.participants-list h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #00d9ff;
}

.participants-list ul {
    list-style: none;
}

.participants-list li {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.participants-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
}

.rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a2e;
}

.rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #1a1a2e;
}

.rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa06d);
    color: #1a1a2e;
}

.score {
    margin-right: auto;
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.2), rgba(102, 126, 234, 0.2));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #00d9ff;
    font-weight: 700;
}

.score::after {
    content: ' درجة';
    font-size: 0.7rem;
    opacity: 0.8;
}

.add-participant {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-participant input {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Cairo', sans-serif;
}

.add-participant input::placeholder {
    color: #888;
}

.add-participant input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.footer {
    background: linear-gradient(180deg, #0a0a15 0%, #000 100%);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 2rem;
    color: #667eea;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
}

.footer-powered {
    text-align: center;
}

.footer-powered h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.eaaai-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.eaaai-brand:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.eaaai-brand i {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

.eaaai-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.eaaai-services {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.eaaai-services li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.eaaai-services li i {
    color: #667eea;
}

.footer-contact {
    text-align: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

.footer-link i {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.made-with {
    color: rgba(255, 255, 255, 0.7);
}

.made-with a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.made-with a:hover {
    color: #764ba2;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 30px;
    }

    .eaaai-services {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .upload-area {
        padding: 30px;
    }

    .levels-container {
        grid-template-columns: 1fr;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.level-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

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

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #00d9ff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00a8cc;
}

.essay-section {
    background: rgba(22, 33, 62, 0.5);
}

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

.essay-section .no-questions {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.essay-section .no-questions i {
    font-size: 4rem;
    color: #666;
    margin-bottom: 1rem;
}

.essay-section .no-questions h3 {
    color: #888;
    margin-bottom: 0.5rem;
}

.essay-section .no-questions p {
    color: #666;
}

.essay-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(22, 33, 62, 0.5));
}

.essay-section-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.essay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.essay-header h3 {
    color: #00d9ff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.essay-marks {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.essay-description {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.essay-questions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.essay-question-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.essay-question-card:hover {
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateX(-5px);
}

.essay-term {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(102, 126, 234, 0.1);
}

.essay-term i {
    color: #667eea;
    font-size: 1.2rem;
}

.essay-term span {
    flex: 1;
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
}

.show-essay-answer-btn {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.show-essay-answer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

.show-essay-answer-btn.showing {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.essay-answer {
    padding: 20px;
    background: rgba(0, 217, 255, 0.05);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.answer-content {
    color: #38ef7d;
    line-height: 2;
    font-size: 1rem;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-right: 4px solid #38ef7d;
}

.essay-section-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.6s ease forwards;
}

.essay-section-card:nth-child(2) {
    animation-delay: 0.1s;
}

.essay-section-card:nth-child(3) {
    animation-delay: 0.2s;
}

.essay-section-card:nth-child(4) {
    animation-delay: 0.3s;
}

.essay-section-card:nth-child(5) {
    animation-delay: 0.4s;
}

@media (max-width: 768px) {
    .essay-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .essay-term {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .show-essay-answer-btn {
        width: 100%;
        justify-content: center;
    }

    .essay-header h3 {
        font-size: 1.1rem;
    }
}

.ask-ai-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-radius: 25px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    text-align: center;
}

.ask-ai-title {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ask-ai-title i {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.ask-ai-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.ask-ai-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.ask-ai-input-container textarea {
    width: 100%;
    min-height: 120px;
    padding: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.ask-ai-input-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.ask-ai-input-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ask-ai-btn {
    align-self: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.ask-ai-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.ask-ai-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ask-ai-response {
    margin-top: 30px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    text-align: right;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #667eea;
    font-weight: 700;
    font-size: 1.2rem;
}

.response-header i {
    font-size: 1.5rem;
}

.response-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 2;
    white-space: pre-wrap;
}

.response-content strong {
    color: #667eea;
}

.ask-ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.ask-ai-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .ask-ai-section {
        padding: 25px;
    }

    .ask-ai-title {
        font-size: 1.4rem;
    }

    .ask-ai-btn {
        width: 100%;
        justify-content: center;
    }
}

.chat-bot-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 5px 30px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chat-bot-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.7);
}

.chat-bot-btn i {
    font-size: 1.8rem;
    color: white;
}

.chat-bot-btn .bot-tooltip {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-bot-btn:hover .bot-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 80px;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 5px 30px rgba(102, 126, 234, 0.5);
    }

    50% {
        box-shadow: 0 5px 30px rgba(102, 126, 234, 0.8), 0 0 0 15px rgba(102, 126, 234, 0.1);
    }
}

.chat-bot-container {
    position: fixed;
    bottom: 110px;
    left: 30px;
    width: 380px;
    height: 520px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: slideUp 0.3s ease;
}

.chat-bot-container.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-avatar i {
    font-size: 1.5rem;
    color: white;
}

.bot-info h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.bot-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bot-status i {
    font-size: 0.5rem;
    color: #38ef7d;
}

.close-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-chat i {
    color: white;
    font-size: 1rem;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.bot {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
    align-self: flex-start;
    border-bottom-right-radius: 5px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.chat-message.user {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: 5px;
}

.chat-message.bot .message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.85rem;
}

.chat-message.bot .message-header i {
    font-size: 0.9rem;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-input-container {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-container input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-container input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.chat-input-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.send-btn i {
    color: white;
    font-size: 1rem;
}

.upload-image-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.upload-image-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.5);
}

.upload-image-btn i {
    color: white;
    font-size: 1rem;
}

.chat-message.image-message {
    padding: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.chat-message.image-message img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-message.image-message img:hover {
    transform: scale(1.05);
}

.chat-message.image-message .image-label {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.8;
}

.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.image-preview-content {
    text-align: center;
}

.image-preview-content img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-preview-content button {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.image-preview-content button:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chat-bot-container {
        width: calc(100% - 20px);
        height: calc(100% - 150px);
        bottom: 100px;
        left: 10px;
        right: 10px;
        border-radius: 20px;
    }

    .chat-bot-btn {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }

    .chat-bot-btn i {
        font-size: 1.5rem;
    }

    .upload-image-btn,
    .send-btn {
        width: 40px;
        height: 40px;
    }

    .chat-message.image-message img {
        max-width: 150px;
        max-height: 150px;
    }
}

.challenge-section {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3e 50%, #0f0f28 100%);
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.challenge-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 152, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.challenge-section .section-title {
    color: #ffc107;
    text-shadow: 0 0 30px rgba(255, 193, 7, 0.3);
}

.challenge-section .section-title i {
    color: #ffc107;
    animation: flash 1.5s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.challenge-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding: 50px;
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 152, 0, 0.02) 100%);
    border-radius: 30px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.challenge-intro::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffc107, #ff9800, #ffc107);
    border-radius: 31px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.challenge-intro:hover::before {
    opacity: 0.3;
}

.challenge-icon {
    font-size: 6rem;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.5));
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.challenge-info h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.challenge-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

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

.challenge-rules .rule {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 30px;
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 20px;
    min-width: 120px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
}

.challenge-rules .rule:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

.challenge-rules .rule i {
    font-size: 2.5rem;
    color: #ffc107;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
}

.challenge-rules .rule span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.challenge-name-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.challenge-name-input label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.challenge-name-input label i {
    color: #ffc107;
}

.challenge-name-input input {
    width: 100%;
    max-width: 380px;
    padding: 18px 25px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.challenge-name-input input:focus {
    outline: none;
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.challenge-name-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.start-challenge-btn {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    font-weight: 700;
    padding: 18px 50px;
    font-size: 1.3rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

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

.start-challenge-btn:hover::before {
    left: 100%;
}

.start-challenge-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.4);
}

.challenge-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 30px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 30px;
}

.challenge-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
}

.challenge-timer.warning {
    color: #ff5722;
    animation: blink 0.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.challenge-progress {
    font-size: 1.2rem;
    color: #fff;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.challenge-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #4caf50;
}

.challenge-question-container {
    padding: 30px;
}

.challenge-question {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.8;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border-right: 4px solid #ffc107;
}

.challenge-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.1rem;
}

.challenge-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateX(-5px);
}

.challenge-option.selected {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

.challenge-option .option-letter {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    font-weight: 700;
    color: #ffc107;
}

.challenge-option.selected .option-letter {
    background: #ffc107;
    color: #000;
}

.challenge-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.challenge-result {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

.challenge-result h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
}

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

.result-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.result-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffc107;
}

.result-stats .stat-label {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.leaderboard-section {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.leaderboard-title {
    text-align: center;
    font-size: 1.8rem;
    color: #ffc107;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.leaderboard-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: rgba(255, 193, 7, 0.2);
    padding: 15px;
    color: #ffc107;
    font-weight: 700;
    text-align: center;
}

.leaderboard-table td {
    padding: 15px;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table tbody tr:first-child {
    background: rgba(255, 215, 0, 0.1);
}

.leaderboard-table tbody tr:first-child td:first-child::after {
    content: ' 🥇';
}

.leaderboard-table tbody tr:nth-child(2) td:first-child::after {
    content: ' 🥈';
}

.leaderboard-table tbody tr:nth-child(3) td:first-child::after {
    content: ' 🥉';
}

.no-records {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .challenge-intro {
        padding: 25px;
    }

    .challenge-rules {
        gap: 15px;
    }

    .challenge-rules .rule {
        min-width: 80px;
        padding: 15px;
    }

    .challenge-header {
        flex-direction: column;
        gap: 15px;
    }

    .challenge-timer {
        font-size: 1.3rem;
    }

    .result-stats {
        flex-direction: column;
    }

    .result-stats .stat {
        width: 100%;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
}

.leaderboard-main-section {
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a3e 50%, #0f0f28 100%);
    min-height: 80vh;
    padding: 100px 0;
}

.leaderboard-main-section .section-title {
    color: #ffc107;
}

.leaderboard-info {
    text-align: center;
    margin-bottom: 40px;
}

.leaderboard-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.main-leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.main-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.main-leaderboard-table th {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.2));
    padding: 20px;
    color: #ffc107;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

.main-leaderboard-table td {
    padding: 18px;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
}

/* Time column (4th column) - Calculator style with LTR */
.main-leaderboard-table td:nth-child(4),
.main-leaderboard-table th:nth-child(4) {
    direction: ltr !important;
    text-align: center !important;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Score column (3rd column) - Calculator style with LTR */
.main-leaderboard-table td:nth-child(3),
.main-leaderboard-table th:nth-child(3) {
    direction: ltr !important;
    text-align: center !important;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    font-weight: 600;
}

/* Date column (5th column) - Calculator style with LTR */
.main-leaderboard-table td:nth-child(5),
.main-leaderboard-table th:nth-child(5) {
    direction: ltr !important;
    text-align: center !important;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-leaderboard-table tbody tr {
    transition: all 0.3s ease;
}

.main-leaderboard-table tbody tr:hover {
    background: rgba(255, 193, 7, 0.1);
    transform: scale(1.01);
}

.main-leaderboard-table tbody tr:first-child {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
}

.main-leaderboard-table tbody tr:first-child td:first-child::after {
    content: ' 🥇';
}

.main-leaderboard-table tbody tr:nth-child(2) {
    background: rgba(192, 192, 192, 0.1);
}

.main-leaderboard-table tbody tr:nth-child(2) td:first-child::after {
    content: ' 🥈';
}

.main-leaderboard-table tbody tr:nth-child(3) {
    background: rgba(205, 127, 50, 0.1);
}

.main-leaderboard-table tbody tr:nth-child(3) td:first-child::after {
    content: ' 🥉';
}

.no-records-main {
    text-align: center;
    padding: 60px 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.no-records-main a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.no-records-main a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .main-leaderboard-table th,
    .main-leaderboard-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
}

.essay-challenge-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.essay-challenge-intro {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    text-align: center;
}

.essay-challenge-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.essay-question-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.essay-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-badge {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
}

.question-points {
    background: rgba(56, 239, 125, 0.2);
    color: #38ef7d;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.essay-question-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #fff;
}

.essay-answer-box {
    margin-bottom: 20px;
}

.essay-answer-box label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #00d9ff;
    font-size: 1.1rem;
}

.essay-answer-box textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.3s;
}

.essay-answer-box textarea:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.essay-answer-box textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.char-counter {
    text-align: left;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.essay-grading-loading {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.grading-animation {
    margin-bottom: 20px;
}

.grading-animation i {
    font-size: 4rem;
    color: #667eea;
}

.essay-grading-loading h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.essay-grading-loading p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.grading-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.grading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.5s ease;
    animation: gradingPulse 1.5s infinite;
}

@keyframes gradingPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.essay-challenge-result {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.essay-challenge-result .result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.essay-challenge-result h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
}

.essay-feedback-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    text-align: right;
}

.essay-feedback-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-question-num {
    font-weight: 700;
    color: #00d9ff;
    font-size: 1.1rem;
}

.feedback-score {
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
}

.feedback-score.high {
    background: rgba(56, 239, 125, 0.2);
    color: #38ef7d;
}

.feedback-score.medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.feedback-score.low {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.feedback-question {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.feedback-answer {
    background: rgba(0, 217, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
    max-height: 100px;
    overflow-y: auto;
}

.feedback-comment {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    line-height: 1.7;
    border-right: 3px solid #667eea;
}

.feedback-comment i {
    color: #667eea;
    margin-left: 8px;
}

.essay-timer.warning {
    animation: timerWarning 0.5s infinite alternate;
    color: #ff5252 !important;
}

@keyframes timerWarning {
    from {
        background: rgba(255, 82, 82, 0.2);
    }

    to {
        background: rgba(255, 82, 82, 0.4);
    }
}

@media (max-width: 768px) {

    .essay-challenge-container,
    .essay-challenge-intro,
    .essay-grading-loading,
    .essay-challenge-result {
        padding: 20px;
        margin: 0 10px;
    }

    .essay-question-text {
        font-size: 1rem;
    }

    .essay-answer-box textarea {
        min-height: 150px;
        font-size: 1rem;
    }
}

.subjects-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(22, 33, 62, 0.3) 0%, transparent 100%);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: #fff;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-gradient, linear-gradient(135deg, #667eea, #764ba2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(102, 126, 234, 0.15);
}

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

.subject-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.subject-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.subject-card:hover .subject-icon {
    transform: scale(1.1) rotate(5deg);
}

.subject-card-info {
    flex: 1;
}

.subject-card-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.subject-card-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.subject-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-badge.difficulty-easy {
    background: rgba(56, 239, 125, 0.15);
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.stat-badge.difficulty-medium {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.stat-badge.difficulty-hard {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.stat-badge.questions-count {
    background: rgba(0, 217, 255, 0.15);
    color: #00d9ff;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.subject-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.enter-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enter-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(-5px);
}

.subject-card .telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(29, 161, 242, 0.1);
    border: 1px solid rgba(29, 161, 242, 0.3);
    color: #1DA1F2;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.subject-card .telegram-link:hover {
    background: rgba(29, 161, 242, 0.2);
    transform: scale(1.1);
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

@media (max-width: 768px) {
    .subjects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .subject-card {
        padding: 25px;
    }

    .subject-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .subject-card-info h3 {
        font-size: 1.3rem;
    }

    .subject-card-footer {
        flex-direction: column;
        gap: 15px;
    }

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