/* جدول مقارنة الوسطاء - الواجهة الأمامية */
.sbc-table-container {
    margin: 20px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.sbc-table-wrapper {
    overflow-x: auto;
}

.sbc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.sbc-comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    border-bottom: 3px solid #4f46e5;
    position: relative;
}

.sbc-comparison-table th.sbc-feature-column {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    font-size: 16px;
    min-width: 180px;
    text-align: right;
}

.sbc-broker-logo {
    margin-bottom: 10px;
}

.sbc-broker-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sbc-broker-name {
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
}

.sbc-comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.sbc-feature-name {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    text-align: right;
    border-left: 4px solid #6366f1;
}

.sbc-broker-data {
    text-align: center;
    color: #4b5563;
    font-weight: 500;
}

.sbc-rating {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    font-size: 13px;
}

.sbc-action-row td {
    padding: 20px 15px;
    background: #f9fafb;
}

.sbc-action-btn {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.sbc-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
    color: white !important;
}

.sbc-notice {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.sbc-notice p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .sbc-comparison-table {
        font-size: 12px;
    }
    
    .sbc-comparison-table th,
    .sbc-comparison-table td {
        padding: 12px 8px;
    }
    
    .sbc-broker-logo img {
        width: 50px;
        height: 50px;
    }
    
    .sbc-broker-name {
        font-size: 14px;
    }
    
    .sbc-action-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .sbc-feature-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sbc-table-container {
        margin: 10px -10px;
        border-radius: 0;
    }
    
    .sbc-comparison-table th.sbc-feature-column {
        min-width: 120px;
        font-size: 14px;
    }
    
    .sbc-broker-logo img {
        width: 40px;
        height: 40px;
    }
    
    .sbc-broker-name {
        font-size: 12px;
    }
}

/* تحسينات إضافية */
.sbc-comparison-table tr:hover td:not(.sbc-feature-name) {
    background: #f0f9ff;
}

.sbc-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* انيميشن بسيط */
.sbc-table-container {
    animation: sbc-fade-in 0.5s ease-in-out;
}

@keyframes sbc-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}