:root {
    --primary-color: #4A90E2;
    --secondary-color: #FFB84D;
    --accent-color: #4ECDC4;
    --success-color: #6BCB77;
    --warning-color: #FFD93D;
    --background-color: #F8F9FA;
    --text-color: #2C3E50;
    --light-bg: #FFFFFF;
    --border-color: #E9ECEF;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5BA3F5 50%, var(--accent-color) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white !important;
}

.nav-link.dropdown-toggle::after {
    margin-right: 0.5rem;
    margin-left: 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    background: var(--light-bg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5BA3F5);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.3);
    background: linear-gradient(135deg, #5BA3F5, var(--primary-color));
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(149, 165, 166, 0.3);
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #5BA3F5) !important;
}

.badge.bg-primary:hover,
a.badge.bg-primary:hover {
    background: linear-gradient(135deg, #5BA3F5, #6BB0FF) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.4);
    color: white !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color), #7dd87f) !important;
}

.badge.bg-success:hover,
a.badge.bg-success:hover {
    background: linear-gradient(135deg, #7dd87f, #8EE58F) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 203, 119, 0.4);
    color: white !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--secondary-color), #FFC966) !important;
}

.badge.bg-warning:hover,
a.badge.bg-warning:hover {
    background: linear-gradient(135deg, #FFC966, #FFD580) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 184, 77, 0.4);
    color: #2C3E50 !important;
}

a.badge {
    text-decoration: none;
    cursor: pointer;
}

.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5BA3F5 50%, var(--accent-color) 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 12px rgba(74, 144, 226, 0.2);
}

.footer span {
    font-weight: 500;
}

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

.dropdown-menu {
    text-align: right;
    direction: rtl;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    text-align: right;
    direction: rtl;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(91, 163, 245, 0.1));
    color: var(--primary-color);
    transform: translateX(-3px);
}

.dropdown-item i {
    margin-left: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* تحسين أيقونات القائمة */
.nav-link i {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.nav-link:hover i {
    transform: scale(1.15);
}

.nav-link.active i {
    color: white;
}

/* محاذاة القائمة المنسدلة من حافة الهيدر */
.navbar .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    margin-right: 0 !important;
}

/* تعديل المسافة العلوية للقائمة المنسدلة */
.dropdown-menu[data-bs-popper] {
    margin-top: 19px !important;
}

/* محاذاة القائمة المنسدلة للمستخدم من حافة الهيدر */
.navbar-nav .nav-item.dropdown:last-child .dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

/* محاذاة القائمة المنسدلة للأفكار من حافة الهيدر */
.navbar-nav .nav-item.dropdown .dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

/* ضمان أن القائمة تبدأ من حافة الهيدر في جميع الأحجام */
[dir="rtl"] .navbar .dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

.hero-section {
    margin-top: 2rem;
}

/* تحسين استجابة الأزرار في hero section */
.hero-section .btn {
    min-width: 150px;
    white-space: nowrap;
}

/* تحسين hero section على الشاشات الصغيرة */
@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 1rem !important;
        margin-top: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
        padding: 0 0.5rem;
    }
    
    .hero-section .btn {
        width: 100%;
        min-width: auto;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* تحسين hero section على الشاشات المتوسطة */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1.5rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.25rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
    }
}

/* تحسين الأزرار على جميع الشاشات */
@media (max-width: 991px) {
    .hero-section .d-flex.gap-3 {
        gap: 0.75rem !important;
    }
}

/* محاذاة الأيقونات مع النص في RTL */
[dir="rtl"] .bi {
    display: inline-block;
}

/* Bootstrap Icons Support - التأكد من أن الأيقونات تظهر بشكل صحيح */
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* دعم خاص لأيقونة shield-check-fill */
.bi-shield-check-fill::before {
    content: "\f4e6";
}

/* التأكد من أن الأيقونات تعمل في RTL */
[dir="rtl"] .bi {
    display: inline-block;
}

/* التأكد من أن الأيقونات تظهر في RTL */
[dir="rtl"] .bi::before,
[dir="rtl"] [class^="bi-"]::before,
[dir="rtl"] [class*=" bi-"]::before {
    display: inline-block !important;
}

.d-flex.align-items-center .bi {
    vertical-align: middle;
}

/* تحسين محاذاة الأزرار */
.btn .bi {
    vertical-align: middle;
}

/* تحسين الصور */
img {
    max-width: 100%;
    height: auto;
}

/* تحسين صور البروفايل */
img.rounded-circle {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ألوان إضافية للأزرار */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-outline-danger {
    border-color: #e74c3c;
    color: #e74c3c;
    font-weight: 600;
}

.btn-outline-danger:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), #FFC966);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FFC966, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 184, 77, 0.3);
}

/* تحسين الألوان للروابط */
a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #5BA3F5;
}

/* تحسين الألوان للنصوص المميزة */
.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: #6c757d !important;
}

/* تحسين Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
    padding: 0 0.75rem;
    font-weight: 400;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

.breadcrumb-item a:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #5BA3F5);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item i {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.breadcrumb-item.active i {
    opacity: 0.6;
}

/* تحسين منطقة الوصف في صفحات الأفكار */
.page-description-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-description-section .lead {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.page-description-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-description-section ul {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.page-description-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.page-description-section ul li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* تحسين ألوان الهوفر للأزرار */
.btn-outline-success:hover {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 203, 119, 0.3);
}

.btn-outline-warning:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 184, 77, 0.3);
}

.btn-outline-info:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(78, 205, 196, 0.3);
}

.btn-light {
    background: white;
    border: 2px solid #e9ecef;
    color: var(--text-color);
    font-weight: 600;
}

.btn-light:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    border-radius: 15px;
    color: white;
    padding: 2rem 1rem;
}

.hero-section .lead {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.hero-section .hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Icon Styles */
.icon-large {
    font-size: 3rem;
}

.icon-medium {
    font-size: 2.5rem;
}

.icon-primary {
    color: #3498db;
}

.icon-success {
    color: #27ae60;
}

.icon-warning {
    color: #f39c12;
}

/* Profile Picture Styles */
.profile-picture {
    object-fit: cover;
    border: 4px solid #3498db;
    width: 150px;
    height: 150px;
}

.profile-picture-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    font-size: 3rem;
    object-fit: cover;
}

.profile-picture-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.profile-picture-medium {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.profile-picture-placeholder-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4A90E2, #5BA3F5);
    color: white;
    font-weight: bold;
    object-fit: cover;
}

.profile-picture-placeholder-medium {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4A90E2, #5BA3F5);
    color: white;
    font-size: 2.5rem;
    object-fit: cover;
}

/* Card Gradient Styles */
.card-gradient-primary {
    background: linear-gradient(135deg, #4A90E2, #5BA3F5);
    color: white;
}

.card-gradient-warning {
    background: linear-gradient(135deg, #FFB84D, #FFC966);
    color: white;
}

.card-gradient-success {
    background: linear-gradient(135deg, #4ECDC4, #6BCB77);
    color: white;
}

.card-gradient-info {
    background: linear-gradient(135deg, #6BCB77, #4ECDC4);
    color: white;
}

/* Unified Button Styles */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.1rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #7dd87f);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #7dd87f, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(107, 203, 119, 0.3);
    color: white;
}

.btn-outline-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 203, 119, 0.3);
}

.btn-outline-warning {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-warning:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 184, 77, 0.3);
}

.btn-outline-info {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-info:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(78, 205, 196, 0.3);
}

/* Empty State Icon */
.empty-state-icon {
    font-size: 3rem;
    color: #ccc;
}

/* تحسين بطاقات SEO */
.seo-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.seo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.seo-card-primary {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(91, 163, 245, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
}

.seo-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    flex: 1;
}

.seo-card-primary .seo-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), #5BA3F5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.seo-card-primary .seo-icon-wrapper i {
    color: white;
    font-size: 2.5rem;
}

.seo-card-primary .seo-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
}

.seo-card-primary .seo-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.seo-card-success {
    background: linear-gradient(135deg, rgba(107, 203, 119, 0.05) 0%, rgba(125, 216, 127, 0.1) 100%);
    border-left: 4px solid var(--success-color);
}

.seo-card-success .seo-icon-wrapper {
    background: linear-gradient(135deg, var(--success-color), #7dd87f);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(107, 203, 119, 0.3);
}

.seo-card-success .seo-icon-wrapper i {
    color: white;
    font-size: 2.5rem;
}

.seo-card-success .seo-value {
    color: var(--success-color);
    font-weight: 700;
    font-size: 2.5rem;
}

.seo-card-success .seo-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.seo-card-warning {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.05) 0%, rgba(255, 201, 102, 0.1) 100%);
    border-left: 4px solid var(--secondary-color);
}

.seo-card-warning .seo-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary-color), #FFC966);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3);
}

.seo-card-warning .seo-icon-wrapper i {
    color: white;
    font-size: 2.5rem;
}

.seo-card-warning .seo-value {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 2.5rem;
}

.seo-card-warning .seo-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.seo-card-info {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05) 0%, rgba(107, 203, 119, 0.1) 100%);
    border-left: 4px solid var(--accent-color);
}

.seo-card-info .seo-icon-wrapper {
    background: linear-gradient(135deg, var(--accent-color), #6BCB77);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.seo-card-info .seo-icon-wrapper i {
    color: white;
    font-size: 2.5rem;
}

.seo-card-info .seo-value {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 2.5rem;
}

.seo-card-info .seo-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ضمان نفس الارتفاع للبطاقات */
.row.align-items-stretch .col-md-3 {
    display: flex;
}

.row.align-items-stretch .col-md-3 .card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.row.align-items-stretch .col-md-3 .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.row.align-items-stretch .col-md-3 .card .card-body .mt-auto {
    margin-top: auto;
}

.seo-badge-primary {
    background: linear-gradient(135deg, var(--primary-color), #5BA3F5) !important;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.seo-status-badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
}

/* تحسين Core Web Vitals Cards */
.vital-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
}

.vital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.vital-card-lcp {
    border-top: 4px solid var(--primary-color);
}

.vital-card-lcp:hover {
    border-top-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, #ffffff 100%);
}

.vital-card-fid {
    border-top: 4px solid var(--secondary-color);
}

.vital-card-fid:hover {
    border-top-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.05) 0%, #ffffff 100%);
}

.vital-card-cls {
    border-top: 4px solid var(--success-color);
}

.vital-card-cls:hover {
    border-top-color: var(--success-color);
    background: linear-gradient(135deg, rgba(107, 203, 119, 0.05) 0%, #ffffff 100%);
}

.vital-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
}

.vital-card-lcp .vital-icon-wrapper {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(91, 163, 245, 0.2));
}

.vital-card-lcp .vital-icon-wrapper i {
    color: var(--primary-color);
}

.vital-card-fid .vital-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.1), rgba(255, 201, 102, 0.2));
}

.vital-card-fid .vital-icon-wrapper i {
    color: var(--secondary-color);
}

.vital-card-cls .vital-icon-wrapper {
    background: linear-gradient(135deg, rgba(107, 203, 119, 0.1), rgba(125, 216, 127, 0.2));
}

.vital-card-cls .vital-icon-wrapper i {
    color: var(--success-color);
}

.vital-card:hover .vital-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vital-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.vital-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0.5rem 0;
}

.vital-card p.text-muted {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    margin: 0.25rem 0;
}

.vital-card small.text-muted {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    margin-top: 0.5rem;
}

.vital-status {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    margin-top: 0.5rem;
}