/* تصميم نظام التوقع الجديد */
.prediction-system {
    background: #f8f9fa;
    padding: 20px;
}

/* ملاحظة التوقعات */
.prediction-note {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #6c757d;
}

.note-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.note-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.note-text {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.whatsapp-link {
    background: #25d366;
    color: #fff;
}

.whatsapp-link:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-1px);
}

.telegram-link {
    background: #0088cc;
    color: #fff;
}

.telegram-link:hover {
    background: #006699;
    color: #fff;
    transform: translateY(-1px);
}

.social-icon {
    font-size: 14px;
}

.social-text {
    font-size: 12px;
}

/* حقل رقم الواتساب */
.whatsapp-input-container {
    display: flex;
    gap: 5px;
    align-items: stretch;
}

.country-code-select {
    flex: 0 0 120px;
    padding: 8px 6px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.country-code-select:focus {
    outline: none;
    border-color: #6c757d;
}

.whatsapp-input-container input[type="tel"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: #fff;
    transition: border-color 0.2s ease;
}

.whatsapp-input-container input[type="tel"]:focus {
    outline: none;
    border-color: #6c757d;
}

/* دعم الوضع الليلي لحقل الواتساب */
.Night .country-code-select,
.Night body .country-code-select {
    background: var(--Gray2, #2b3b4d);
    border-color: var(--Gray3, #1c2733);
    color: #fff;
}

.Night .whatsapp-input-container input[type="tel"],
.Night body .whatsapp-input-container input[type="tel"] {
    background: var(--Gray2, #2b3b4d);
    border-color: var(--Gray3, #1c2733);
    color: #fff;
}

.Night .country-code-select:focus,
.Night body .country-code-select:focus {
    border-color: #fff;
}

.Night .whatsapp-input-container input[type="tel"]:focus,
.Night body .whatsapp-input-container input[type="tel"]:focus {
    border-color: #fff;
}

/* تصميم متجاوب لحقل الواتساب */
@media (max-width: 768px) {
    .whatsapp-input-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .country-code-select {
        flex: none;
        width: 100%;
    }
}

.prediction-header {
    text-align: center;
    margin-bottom: 20px;
}

.prediction-header h3 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.prediction-header p {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

/* بطاقة التوقع المدمجة */
.prediction-match-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.teams-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-prediction {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-logo-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-name {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    line-height: 1.2;
}

.score-input-container {
    margin-top: 5px;
}

.score-input {
    width: 45px;
    height: 35px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    transition: all 0.2s ease;
}

.score-input:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.match-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.vs-text {
    background: #6c757d;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* قسم معلومات المستخدم */
.user-info-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.info-field {
    flex: 1;
}

.info-field label,
.comment-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.info-field input,
.comment-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background: #fff;
    transition: border-color 0.2s ease;
}

.info-field input:focus,
.comment-field textarea:focus {
    outline: none;
    border-color: #6c757d;
}

.comment-field textarea {
    resize: vertical;
    min-height: 60px;
}

/* قسم reCAPTCHA */
.recaptcha-section {
    text-align: center;
    margin: 15px 0;
}

.recaptcha-section .g-recaptcha {
    display: inline-block;
}

/* قسم الإرسال */
.submit-section {
    text-align: center;
    margin-top: 15px;
}

.submit-prediction-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.submit-prediction-btn:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.submit-prediction-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 16px;
}

.btn-text {
    font-size: 14px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .prediction-system {
        padding: 15px;
    }
    
    .teams-container {
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
    }
    
    .match-vs {
        order: 0;
        min-width: 30px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .team-logo-container {
        width: 30px;
        height: 30px;
    }
    
    .team-name {
        font-size: 14px;
        line-height: 1.1;
    }
    
    .score-input {
        width: 35px;
        height: 28px;
        font-size: 13px;
    }
    
    .vs-text {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .team-prediction {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .prediction-header h3 {
        font-size: 16px;
    }
    
    .prediction-header p {
        font-size: 12px;
    }
    
    .submit-prediction-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* رسالة انتهاء المباراة */
.match-ended-message {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin: 15px 0;
}

.message-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.match-ended-message h3 {
    color: #6c757d;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.match-ended-message p {
    color: #868e96;
    font-size: 14px;
    margin: 0;
}

/* إحصائيات التوقعات */
.prediction-stats {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.stats-header {
    text-align: center;
    margin-bottom: 20px;
}

.stats-header h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* تصميم متجاوب للإحصائيات */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .message-icon {
        font-size: 36px;
    }
    
    .match-ended-message h3 {
        font-size: 18px;
    }
}

/* تصميم قسم التعليقات */
.match-comments-section {
    padding: 20px;
}

.comments-title {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid var(--bk-ttl-bg);
    padding-bottom: 10px;
}

/* تصميم قائمة التعليقات */
.comments-list h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.comment-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f2f6;
    padding: 10px;
    background: var(--Gray2);
}

.commenter-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.comment-date {
    color: #7f8c8d;
    font-size: 12px;
    font-style: italic;
}

.prediction-display {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    margin: 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.prediction-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.prediction-team .team-name {
    font-size: 14px;
    color: #2c3e50;
}

.predicted-score {
    background: var(--bk-ttl-bg);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    margin-top: 10px;
}

.prediction-vs {
    font-weight: bold;
    color: #e74c3c;
    font-size: 16px;
}

.comment-content {
    padding: 10px;
    color: #2c3e50;
    line-height: 1.6;
    font-size: initial;
}

.no-comments {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* تصميم متجاوب للتعليقات */
@media (max-width: 768px) {
    .prediction-display {
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
    }
    
    .prediction-team {
        gap: 3px;
    }
    
    .prediction-team .team-name {
        font-size: 14px;
        text-align: center;
    }
    
    .predicted-score {
        padding: 3px 8px;
        font-size: 13px;
    }
    
    .prediction-vs {
        font-size: 14px;
        align-self: center;
    }
    
    .comment-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .commenter-name {
        font-size: 14px;
    }
    
    .comment-date {
        font-size: 14px;
    }
    
    .match-comments-section {
        padding: 15px;
    }
}

/* دعم الوضع الليلي */
.Night .prediction-system,
.Night body .prediction-system {
    background: var(--Gray2, #2b3b4d);
    border: 1px solid var(--Gray3, #1c2733);
    color: #fff;
}

.Night .prediction-header h3,
.Night body .prediction-header h3 {
    color: #fff;
}

.Night .prediction-header p,
.Night body .prediction-header p {
    color: #b0b3b8;
}

.Night .prediction-match-card,
.Night body .prediction-match-card {
    background: var(--header_bg, #263545);
    border-color: var(--Gray3, #1c2733);
}

.Night .team-name,
.Night body .team-name {
    color: #fff;
}

.Night .score-input,
.Night body .score-input {
    background: var(--Gray2, #2b3b4d);
    border-color: var(--Gray3, #1c2733);
    color: #fff;
}

.Night .score-input:focus,
.Night body .score-input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.Night .vs-text,
.Night body .vs-text {
    background: var(--Gray3, #1c2733);
    color: #fff;
}

.Night .user-info-section,
.Night body .user-info-section {
    background: var(--header_bg, #263545);
    border-color: var(--Gray3, #1c2733);
}

.Night .info-field label,
.Night .comment-field label,
.Night body .info-field label,
.Night body .comment-field label {
    color: #fff;
}

.Night .info-field input,
.Night .comment-field textarea,
.Night body .info-field input,
.Night body .comment-field textarea {
    background: var(--Gray2, #2b3b4d);
    border-color: var(--Gray3, #1c2733);
    color: #fff;
}

.Night .info-field input:focus,
.Night .comment-field textarea:focus,
.Night body .info-field input:focus,
.Night body .comment-field textarea:focus {
    border-color: #fff;
}

.Night .submit-prediction-btn,
.Night body .submit-prediction-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #fff;
}

.Night .submit-prediction-btn:hover,
.Night body .submit-prediction-btn:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.Night .match-ended-message,
.Night body .match-ended-message {
    background: var(--header_bg, #263545);
    border-color: var(--Gray3, #1c2733);
    color: #fff;
}

.Night .match-ended-message h3,
.Night body .match-ended-message h3 {
    color: #fff;
}

.Night .match-ended-message p,
.Night body .match-ended-message p {
    color: #b0b3b8;
}

.Night .prediction-stats,
.Night body .prediction-stats {
    background: var(--header_bg, #263545);
    border-color: var(--Gray3, #1c2733);
}

.Night .stats-header h4,
.Night body .stats-header h4 {
    color: #fff;
}

.Night .stat-item,
.Night body .stat-item {
    background: var(--Gray2, #2b3b4d);
    border-color: var(--Gray3, #1c2733);
}

.Night .stat-number,
.Night body .stat-number {
    color: #fff;
}

.Night .stat-label,
.Night body .stat-label {
    color: #b0b3b8;
}

.Night .match-comments-section,
.Night body .match-comments-section {
    background: var(--header_bg, #263545);
    color: #fff;
}

.Night .comments-title,
.Night body .comments-title {
    color: #fff;
    border-bottom-color: #4a5568;
}

.Night .comment-item,
.Night body .comment-item {
    background: var(--Gray2, #2b3b4d);
    border-color: var(--Gray3, #1c2733);
    color: #fff;
}

.Night .commenter-name,
.Night body .commenter-name {
    color: #fff;
}

.Night .comment-date,
.Night body .comment-date {
    color: #b0b3b8;
}

.Night .prediction-display,
.Night body .prediction-display {
    background: var(--Gray3, #1c2733);
}

.Night .prediction-team .team-name,
.Night body .prediction-team .team-name {
    color: #fff;
}

.Night .predicted-score,
.Night body .predicted-score {
    background: #4a5568;
    color: #fff;
}

.Night .prediction-vs,
.Night body .prediction-vs {
    color: #fff;
}

.Night .comment-content,
.Night body .comment-content {
    color: #e2e8f0;
}

.Night .no-comments,
.Night body .no-comments {
    background: var(--Gray2, #2b3b4d);
    color: #b0b3b8;
}

/* دعم الوضع الليلي للملاحظة */
.Night .prediction-note,
.Night body .prediction-note {
    background: var(--header_bg, #263545);
    border-color: var(--Gray3, #1c2733);
    border-left-color: #6c757d;
}

.Night .note-text,
.Night body .note-text {
    color: #fff;
}

.Night .social-links,
.Night body .social-links {
    justify-content: center;
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .note-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .note-text {
        font-size: 13px;
    }
}

.info-field input, .comment-field textarea ,button.submit-prediction-btn{
    font-family: var(--font_type), Segoe UI;
}