:root {
    --primary: #0f766e;
    --secondary: #0d9488;
    --accent: #2dd4bf;
    --glow-color: 102, 126, 234;
    --icon-color: #3b82f6;
}

* {
    font-family: 'El Messiri', sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    color: #1e293b;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

main {
    flex: 1;
    width: 100%;
    margin-bottom: auto;
}

footer {
    margin-top: auto !important;
    width: 100% !important;
    position: relative;
    left: 0;
    right: 0;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(15, 118, 110, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(15, 118, 110, 0.2);
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 3rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.star-rating label:before {
    content: '★';
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #fbbf24;
    transform: scale(1.2) rotate(5deg);
    animation: starPulse 0.6s ease;
}

.animate-star-fill {
    animation: starFill 0.6s ease-out forwards;
}

.tab-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #0f766e, #2dd4bf);
    transition: width 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.text-gradient {
    background: linear-gradient(to right, #0f766e, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #0f766e, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0f766e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.radio-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.radio-container input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-container input[type="radio"]:checked + .radio-custom {
    border-color: #0f766e;
    background-color: #0f766e;
}

.radio-container input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
}

.submit-btn {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 118, 110, 0.4);
}

.developer-description {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 16px;
    border: 2px solid #cbd5e1;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    border-color: #0f766e;
    background: #f0fdfa;
}

.pagination button.active {
    background: #0f766e;
    color: white;
    border-color: #0f766e;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

body.prevent-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.chart-container {
    position: relative;
    height: 250px;
    animation: fadeInUp 0.8s ease;
}

.company-search-result {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    margin-top: 10px;
    display: none;
    position: absolute;
    background: white;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.company-item {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.3s;
}

.company-item:hover {
    background: #f0fdfa;
}

.company-name-ar {
    font-weight: bold;
    color: #0f766e;
    font-size: 1.1rem;
}

.company-name-en {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    max-height: 96vh;
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
    padding: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-body {
    padding: 30px;
}

.form-step {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(15, 118, 110, 0.08);
    transition: all 0.3s ease;
}

.form-step:hover {
    box-shadow: 0 15px 50px rgba(15, 118, 110, 0.12);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.step-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0f766e;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    position: relative;
}

.required {
    color: #ef4444;
}

.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #0f766e;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-right: 5px;
    cursor: help;
    position: relative;
}

.tooltip-text {
    display: none;
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    width: 300px;
    z-index: 1000;
    right: 0;
    top: 100%;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.tooltip-icon:hover .tooltip-text {
    display: block;
}

.company-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 280px;
    height: auto;
    padding: 20px;
}

.company-card:hover {
    border-color: #0d9488;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(13, 148, 136, 0.15);
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.company-card:hover::before {
    transform: translateX(100%);
}

.company-card {
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #0ea5e9, #0d9488, #10b981) border-box;
}

.intro-section {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(45, 212, 191, 0.05) 100%);
    border: 2px solid rgba(13, 148, 136, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.5s ease;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: 15px;
    padding: 1.2rem;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #0d9488;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.1);
}

.benefit-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.benefit-icon i {
    color: white;
    font-size: 1.3rem;
}

.company-details {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.9) 0%, rgba(224, 242, 254, 0.9) 100%);
    border: 1px solid rgba(186, 230, 253, 0.5);
    border-radius: 15px;
    padding: 1.2rem;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.stat-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0f766e;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
}

.navigation-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
}

.navigation-buttons button {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.navigation-buttons button.show {
    opacity: 1;
    transform: translateY(0);
}

.navigation-buttons button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.4);
}

.filter-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.question-tooltip {
    position: relative;
    display: inline-block;
    margin-right: 5px;
}

.question-tooltip .tooltip-content {
    visibility: hidden;
    width: 300px;
    background-color: #1e293b;
    color: white;
    text-align: right;
    border-radius: 8px;
    padding: 15px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.question-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

.animate-progress {
    animation: progress 2s ease;
}

.animate-count {
    animation: countUp 2s ease;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

.animate-scale {
    animation: scale 0.3s ease;
}

.animate-flip {
    animation: flip 0.6s ease;
}

.security-shield {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    font-size: 24px;
    color: #10b981;
    animation: pulse 2s infinite;
}



/* أيقونة البحث السريع الثابتة */
.quick-search-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.5);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: floatAnimation 3s ease-in-out infinite;
    border: 3px solid white;
}

.quick-search-floating-btn:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.7);
    background: linear-gradient(135deg, #2dd4bf, #0f766e);
}

.quick-search-floating-btn i {
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.quick-search-floating-btn:hover i {
    transform: scale(1.2);
}

/* تأثير النقر على الأيقونة */
.click-effect {
    animation: clickEffect 0.3s ease;
}

/* تعديل CSS للمودال */
#quickSearchModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

#quickSearchModal.hidden {
    display: none;
}

#quickSearchModal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-result-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.company-result-item:hover {
    border-color: #0d9488;
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

#quickSearchResults {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.company-autocomplete-item {
    transition: all 0.2s ease;
}

.company-autocomplete-item:hover {
    background: linear-gradient(135deg, #f0fdfa, #e6f8f5);
    transform: translateX(-5px);
    border-color: #0d9488;
}

#quickSearchModal .modal-content {
    max-width: 600px;
    margin: 5% auto;
}

#quickSearchInput {
    font-size: 18px;
    height: 60px;
    padding-right: 60px;
    padding-left: 50px;
}

#quickSearchInput:focus {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* تنسيقات Modal الجديد */
#quickSearchModal .modal-content {
    margin: 2% auto;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease;
}

.modal-content-wrapper {
    min-height: 300px;
}

.company-search-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.company-search-item:hover {
    border-color: #0d9488;
    transform: translateX(-10px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.15);
    background: linear-gradient(135deg, #f0fdfa 0%, #e6f8f5 100%);
}

.company-search-item .company-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.company-search-item .stat-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.company-search-item .stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* تدرج لوني محايد للعنوان */
.text-center.mb-10 h3.text-4xl {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.text-center.mb-10 h3.text-4xl::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #6b7280, #9ca3af);
    border-radius: 2px;
}

.text-center.mb-10 p.text-xl {
    color: #6b7280;
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.6;
    font-size: 1.25rem;
}

/* تحسين colors للعناصر */
.bg-gray-50 {
    background: #f9fafb;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-gray-400 {
    border-color: #9ca3af;
}

.border-gray-500 {
    border-color: #6b7280;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-500 {
    color: #6b7280;
}



/* ============ الإحصائيات المتقدمة ============ */
.advanced-stats-section {
    @apply bg-gradient-to-br from-gray-50 to-white p-6 rounded-3xl border-2 border-gray-300 shadow-xl;
    animation: fadeIn 0.8s ease-out;
    margin-top: 3rem;
    padding: 2rem 1rem;
}

.section-header {
    @apply text-center mb-10 p-6 bg-gradient-to-r from-teal-50 to-cyan-50 rounded-2xl border-2 border-teal-200;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.section-header i {
    @apply mb-4 animate-bounce;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.section-header h3 {
    @apply text-3xl font-bold mb-2 bg-gradient-to-r from-teal-700 to-cyan-700 bg-clip-text text-transparent;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-header p {
    @apply text-lg text-gray-700;
    color: #6b7280;
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.6;
    font-size: 1.25rem;
}

/* ============ بطاقات الإحصائيات ============ */
.stats-cards-grid {
    @apply grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-10;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card-advanced {
    @apply relative overflow-hidden p-5 rounded-2xl border-2 transition-all duration-500 hover:scale-105;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.2s);
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card-advanced:hover {
    @apply border-teal-400;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card-header {
    @apply flex items-center gap-3 mb-4;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed #e2e8f0;
}

.stat-card-icon {
    @apply w-12 h-12 rounded-xl flex items-center justify-center text-2xl;
    background: linear-gradient(135deg, var(--icon-color), color-mix(in srgb, var(--icon-color) 80%, white));
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.stat-card-title {
    @apply font-bold text-gray-800 text-lg;
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.stat-card-value {
    @apply text-3xl font-bold mb-2 animate-count;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.stat-card-label {
    @apply text-gray-600 text-sm;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-trend {
    @apply mt-3 flex items-center gap-2 text-sm font-medium;
}

.trend-up {
    @apply text-green-600;
}

.trend-down {
    @apply text-red-600;
}

/* ============ الرسوم البيانية ============ */
.charts-container {
    @apply grid grid-cols-1 lg:grid-cols-2 gap-6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.chart-wrapper {
    @apply bg-white p-6 rounded-2xl border-2 border-gray-200 shadow-lg hover:shadow-2xl transition-all duration-500;
    animation: slideIn 0.8s ease-out;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chart-wrapper:hover {
    @apply border-teal-300;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.chart-header {
    @apply flex justify-between items-center mb-6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.chart-title {
    @apply text-xl font-bold text-gray-800 flex items-center gap-2;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-controls {
    @apply flex gap-2;
}

.chart-btn {
    @apply px-3 py-1 rounded-lg border border-gray-300 text-sm hover:bg-gray-50 transition-colors;
}

.chart-canvas-container {
    @apply relative h-80 w-full;
    position: relative;
    height: 300px;
    width: 100%;
}

/* ============ التحميل ============ */
.loading-state {
    @apply text-center py-12;
    text-align: center;
    padding: 3rem;
}

.spinner {
    @apply w-16 h-16 border-4 border-teal-300 border-t-teal-600 rounded-full animate-spin mx-auto mb-4;
    width: 4rem;
    height: 4rem;
    border: 4px solid #d1d5db;
    border-top: 4px solid #0d9488;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* ============ الكروت المتقدمة الجديدة ============ */
.advanced-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.adv-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.adv-card-header {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.adv-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.card-primary .adv-card-icon { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.card-success .adv-card-icon { background: linear-gradient(135deg, #10b981, #34d399); }
.card-warning .adv-card-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.card-info .adv-card-icon { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }

.adv-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
}

.adv-card-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.adv-card-body {
    padding: 20px;
}

.adv-main-value {
    text-align: center;
    margin-bottom: 20px;
}

.adv-value-number {
    font-size: 42px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.adv-value-label {
    font-size: 20px;
    color: #6b7280;
    margin-left: 8px;
}

.adv-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.adv-stat-item {
    text-align: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
}

.adv-stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
}

.adv-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.sentiment-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sentiment-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sentiment-label {
    font-size: 13px;
    color: #6b7280;
    width: 100px;
}

.sentiment-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    width: 40px;
}

.sentiment-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.sentiment-fill {
    height: 100%;
    border-radius: 4px;
}

.sentiment-item.positive .sentiment-fill { background: linear-gradient(90deg, #10b981, #34d399); }
.sentiment-item.neutral .sentiment-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.sentiment-item.negative .sentiment-fill { background: linear-gradient(90deg, #ef4444, #f87171); }

.problems-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.problem-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.problem-label {
    font-size: 13px;
    color: #4b5563;
    flex: 1;
}

.problem-value {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
    margin: 0 10px;
}

.problem-count {
    font-size: 12px;
    color: #6b7280;
}

.residents-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.resident-type {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
}

.resident-type.current {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
}

.resident-type.non-resident {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
}

.resident-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.resident-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.resident-percent {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
}

.occupancy-rate {
    text-align: center;
}

.rate-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.rate-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.rate-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.rate-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
}

.adv-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
}

/* ============= أفضل وأسوأ الشركات - تصميم متكامل ============= */
.company-card-advanced {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 3px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.company-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color1), var(--color2));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.company-card-advanced:hover::before {
    transform: scaleX(1);
}

.company-card-advanced.best-company {
    --color1: #10b981;
    --color2: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
}

.company-card-advanced.worst-company {
    --color1: #ef4444;
    --color2: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
}

.company-card-advanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* شارة الرتبة */
.company-rank-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.rank-best {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.rank-worst {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.rank-number {
    font-size: 1.8rem;
    line-height: 1;
}

.rank-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* رأس البطاقة */
.company-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 4rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.logo-best {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.logo-worst {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.company-title {
    flex: 1;
}

.company-name-ar {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-name-en {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

/* قسم التقييم */
.company-rating-section {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.overall-rating {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.rating-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.rating-label {
    font-size: 1rem;
    color: #64748b;
}

.rating-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    letter-spacing: 0.2rem;
}

.total-ratings {
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* الإحصائيات الرئيسية */
.company-main-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.main-stat-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.main-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon-best {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.2));
    color: #10b981;
}

.stat-icon-worst {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.2));
    color: #ef4444;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* تحليل الأسئلة */
.questions-analysis {
    background: white;
    padding: 1.2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.questions-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.question-item {
    padding: 0.8rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-good {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.question-bad {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.question-item span:first-child {
    font-size: 0.9rem;
    color: #64748b;
}

.question-value {
    font-weight: 800;
    font-size: 1.1rem;
}

.question-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.question-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease;
}

.question-good .question-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.question-bad .question-fill {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* قسم الساكنين */
.residents-section {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.residents-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.resident-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}

.current {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.excellent {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.resident-count, .excellent-rate {
    font-weight: 800;
    font-size: 1.2rem;
}

/* وصف الشركة */
.company-description {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.desc-icon {
    color: #3b82f6;
    font-size: 1.2rem;
}

.desc-text {
    flex: 1;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* زر التفاعل */
.company-action-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-best {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.btn-worst {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.company-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============= البطاقات الإحصائية المتقدمة ============= */
.stat-card-3d {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #2dd4bf);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-card-3d:hover::before {
    transform: scaleX(1);
}

.stat-card-3d:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-card-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.stat-card-body {
    margin-bottom: 1.5rem;
}

.stat-main-value {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.stat-value-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.stat-value-suffix {
    font-size: 1.2rem;
    color: #64748b;
}

.stat-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============= التحليل الذكي ============= */
.detailed-company-analysis {
    background: white;
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.detailed-company-analysis:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.analysis-rank {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: #f1f5f9;
    color: #475569;
}

.analysis-rank.warning {
    background: #fef2f2;
    color: #dc2626;
}

.analysis-company {
    margin-bottom: 1rem;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.company-name.warning {
    color: #dc2626;
}

.company-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.company-stats.warning {
    background: #fef2f2;
    padding: 0.8rem;
    border-radius: 10px;
}

.company-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.company-stat span:first-child {
    color: #64748b;
}

.company-stat .stat-value {
    font-weight: 700;
    color: #1e293b;
}

.company-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.insight-good {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.insight-bad {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

/* ============= التوصيات ============= */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.recommendation-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-success {
    border-top: 4px solid #10b981;
}

.card-danger {
    border-top: 4px solid #ef4444;
}

.card-info {
    border-top: 4px solid #3b82f6;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rec-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.rec-content ul {
    list-style-type: none;
    padding-right: 0;
}

.rec-content li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-right: 1.5rem;
}

.rec-content li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #3b82f6;
    font-size: 1.2rem;
}

.card-success .rec-content li::before {
    color: #10b981;
}

.card-danger .rec-content li::before {
    color: #ef4444;
}

/* ============= أفضل وأسوأ الشركات - تصميم متكامل ============= */
.company-card-advanced {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 3px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.company-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color1), var(--color2));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.company-card-advanced:hover::before {
    transform: scaleX(1);
}

.company-card-advanced.best-company {
    --color1: #10b981;
    --color2: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
}

.company-card-advanced.worst-company {
    --color1: #ef4444;
    --color2: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 100%);
}

.company-card-advanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* شارة الرتبة */
.company-rank-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.rank-best {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.rank-worst {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.rank-number {
    font-size: 1.8rem;
    line-height: 1;
}

.rank-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* رأس البطاقة */
.company-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 4rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.logo-best {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.logo-worst {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.company-title {
    flex: 1;
}

.company-name-ar {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-name-en {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

/* قسم التقييم */
.company-rating-section {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.overall-rating {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.rating-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.rating-label {
    font-size: 1rem;
    color: #64748b;
}

.rating-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    letter-spacing: 0.2rem;
}

.total-ratings {
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* الإحصائيات الرئيسية */
.company-main-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.main-stat-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.main-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon-best {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.2));
    color: #10b981;
}

.stat-icon-worst {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.2));
    color: #ef4444;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* تحليل الأسئلة */
.questions-analysis {
    background: white;
    padding: 1.2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.questions-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.question-item {
    padding: 0.8rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-good {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.question-bad {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.question-item span:first-child {
    font-size: 0.9rem;
    color: #64748b;
}

.question-value {
    font-weight: 800;
    font-size: 1.1rem;
}

.question-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.question-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease;
}

.question-good .question-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.question-bad .question-fill {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* قسم الساكنين */
.residents-section {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.residents-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.resident-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}

.current {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.excellent {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.resident-count, .excellent-rate {
    font-weight: 800;
    font-size: 1.2rem;
}

/* وصف الشركة */
.company-description {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.desc-icon {
    color: #3b82f6;
    font-size: 1.2rem;
}

.desc-text {
    flex: 1;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* زر التفاعل */
.company-action-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-best {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.btn-worst {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.company-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============= البطاقات الإحصائية المتقدمة ============= */
.stat-card-3d {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #2dd4bf);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-card-3d:hover::before {
    transform: scaleX(1);
}

.stat-card-3d:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-card-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.stat-card-body {
    margin-bottom: 1.5rem;
}

.stat-main-value {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.stat-value-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.stat-value-suffix {
    font-size: 1.2rem;
    color: #64748b;
}

.stat-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============= التحليل الذكي ============= */
.detailed-company-analysis {
    background: white;
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.detailed-company-analysis:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.analysis-rank {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: #f1f5f9;
    color: #475569;
}

.analysis-rank.warning {
    background: #fef2f2;
    color: #dc2626;
}

.analysis-company {
    margin-bottom: 1rem;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.company-name.warning {
    color: #dc2626;
}

.company-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.company-stats.warning {
    background: #fef2f2;
    padding: 0.8rem;
    border-radius: 10px;
}

.company-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.company-stat span:first-child {
    color: #64748b;
}

.company-stat .stat-value {
    font-weight: 700;
    color: #1e293b;
}

.company-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.insight-good {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.insight-bad {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

/* ============= التوصيات ============= */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.recommendation-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-success {
    border-top: 4px solid #10b981;
}

.card-danger {
    border-top: 4px solid #ef4444;
}

.card-info {
    border-top: 4px solid #3b82f6;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rec-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.rec-content ul {
    list-style-type: none;
    padding-right: 0;
}

.rec-content li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-right: 1.5rem;
}

.rec-content li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #3b82f6;
    font-size: 1.2rem;
}

.card-success .rec-content li::before {
    color: #10b981;
}

.card-danger .rec-content li::before {
    color: #ef4444;
}

/* Charts Section Styling */
.charts-header-section {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.animated-gradient-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 1rem;
}

.charts-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.charts-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.title-subtle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 300;
}

.header-stats-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-counter {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-counter:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.counter-icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.counter-label {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Stats Cards Grid */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-3d-hover:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.1),
        0 0 50px rgba(var(--glow-color), 0.2);
}

.card-glow-blue { --glow-color: 102, 126, 234; }
.card-glow-green { --glow-color: 16, 185, 129; }
.card-glow-yellow { --glow-color: 234, 179, 8; }
.card-glow-red { --glow-color: 239, 68, 68; }

.card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.blue-gradient { background: linear-gradient(135deg, #667eea, #764ba2); }
.green-gradient { background: linear-gradient(135deg, #10b981, #059669); }
.yellow-gradient { background: linear-gradient(135deg, #eab308, #ca8a04); }
.red-gradient { background: linear-gradient(135deg, #ef4444, #dc2626); }

.stats-card-content {
    position: relative;
    z-index: 1;
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.card-icon-wrapper i {
    font-size: 1.5rem;
    color: #667eea;
}

.card-trend-indicator {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-trend-indicator.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-warning { background: rgba(234, 179, 8, 0.1); color: #eab308; }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.stats-card-value {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.stats-card-label {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stats-card-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.percentage {
    font-weight: 700;
    color: #1f2937;
}

.stats-card-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
}

/* Chart Cards */
.charts-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card-advanced {
    background: white;
    border-radius: 25px;
    padding: 1.5rem;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card-3d-rotate:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.2),
        0 0 80px rgba(102, 126, 234, 0.1);
}

.chart-card-header-glow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    position: relative;
}

.chart-card-header-glow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.header-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.header-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
}

.chart-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.chart-card-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.2rem 0 0 0;
}

.chart-container-3d {
    position: relative;
    height: 250px;
    margin: 1rem 0;
}

.chart-3d-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Interactive Legend */
.chart-interactive-legend {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    cursor: pointer;
}

.legend-item:hover {
    background: rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.legend-marker {
    width: 15px;
    height: 15px;
    border-radius: 4px;
}

.legend-label {
    flex: 1;
    font-weight: 600;
    color: #374151;
}

.legend-value {
    font-weight: 800;
    color: #1f2937;
    min-width: 40px;
}

.legend-percentage {
    font-size: 0.9rem;
    color: #6b7280;
    min-width: 50px;
    text-align: right;
}

/* Problems Analysis */
.problems-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.problem-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.problem-card.highlighted {
    border-color: #ef4444;
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.2);
    transform: translateY(-5px);
}

.problem-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
}

.problem-icon i {
    font-size: 1.2rem;
    color: #ef4444;
}

.problem-content {
    flex: 1;
}

.problem-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.2rem;
}

.problem-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.problem-trend {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

.trend-up {
    color: #ef4444;
}

/* Performance Metrics */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card {
    background: rgba(0,0,0,0.02);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card.current {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.progress-circle {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* Additional Stats Row */
.additional-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stats-mini-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stats-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mini-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.mini-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.mini-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.mini-card-label {
    font-size: 0.9rem;
    color: #6b7280;
}

/* === ابدأ إضافة هذا الكود في آخر ملف style.css === */

/* مودال الموافقة القانونية */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.legal-modal-container {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalFadeIn 0.5s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.legal-modal-header {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    color: white;
    padding: 25px;
}

.legal-modal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 25px;
}

.legal-modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
    text-align: center;
}

/* البطاقات القانونية */
.article-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-right: 4px solid;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ألوان البطاقات */
.article-card.border-teal { border-right-color: #0d9488; }
.article-card.border-red { border-right-color: #dc2626; }
.article-card.border-blue { border-right-color: #3b82f6; }
.article-card.border-green { border-right-color: #10b981; }
.article-card.border-purple { border-right-color: #8b5cf6; }
.article-card.border-yellow { border-right-color: #f59e0b; }
.article-card.border-indigo { border-right-color: #6366f1; }
.article-card.border-pink { border-right-color: #ec4899; }
.article-card.border-orange { border-right-color: #f97316; }
.article-card.border-rose { border-right-color: #f43f5e; }

/* زر الموافقة */
.accept-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.accept-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.accept-btn.pulse {
    animation: pulseAccept 2s infinite;
}

/* خانة الاختيار */
.legal-checkbox {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 5px 0;
}

.legal-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.legal-checkbox:hover .checkmark {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.legal-checkbox input:checked + .checkmark {
    background: #10b981;
    border-color: #10b981;
}

.legal-checkbox input:checked + .checkmark:after {
    content: "✓";
    color: white;
    font-size: 16px;
    font-weight: bold;
}

/* رسالة النجاح */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideInRight 0.5s ease, fadeOut 0.5s ease 4.5s forwards;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* =========== إصلاح نهائي لهوامش كبيرة وعدم تناسق =========== */

/* إعدادات أساسية لجميع الشاشات الصغيرة */
@media (max-width: 640px) {
    #stats.tab-content {
        padding: 2px !important;
        margin: 0 !important;
        max-width: 100%;
    }
    
    #stats .mb-10 {
        margin-bottom: 8px !important;
        padding: 0 2px !important;
    }
    
    #stats h2.text-4xl {
        font-size: 1.2rem !important;
        line-height: 1.1 !important;
        margin-bottom: 4px !important;
    }
    
    #stats p.text-lg {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
        padding: 0 2px !important;
    }
    
    .filter-section {
        padding: 6px 4px !important;
        margin: 6px 0 8px 0 !important;
        border-radius: 8px !important;
    }
    
    .filter-section h3.text-2xl {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        text-align: center;
        padding: 0 2px !important;
    }
    
    .filter-section .grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    
    .filter-section label.block {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
        padding: 0 1px !important;
    }
    
    .select2-filter {
        width: 100% !important;
        font-size: 12px !important;
        padding: 6px 8px !important;
        height: 36px !important;
        margin: 0 !important;
        border-radius: 6px !important;
    }
    
    .filter-section button {
        width: 100% !important;
        padding: 8px !important;
        font-size: 0.85rem !important;
        margin-top: 4px !important;
        height: 36px !important;
        border-radius: 6px !important;
    }
    
    .glass-card.p-8 {
        padding: 6px 4px !important;
        margin: 6px 0 8px 0 !important;
        border-radius: 8px !important;
    }
    
    .glass-card h3.text-3xl {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        text-align: center;
        padding: 0 2px !important;
    }
    
    .glass-card .grid.grid-cols-5 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 8px !important;
        padding: 0 1px !important;
    }
    
    .stat-card {
        padding: 6px 4px !important;
        min-height: 70px !important;
        margin: 0 !important;
        border-radius: 6px !important;
        border-width: 1px !important;
    }
    
    .stat-card .w-14.h-14 {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }
    
    .stat-card .counter {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
    }
    
    .stat-card .text-gray-600 {
        font-size: 0.7rem !important;
    }
    
    .stat-card .badge {
        padding: 2px 4px !important;
        font-size: 0.6rem !important;
    }
    
    .glass-card .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 0 2px !important;
    }
    
    .glass-card h4.text-xl {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
        padding: 0 2px !important;
    }
    
    .chart-container {
        height: 140px !important;
        margin: 4px 0 !important;
        padding: 0 !important;
    }
    
    .glass-card .bg-gradient-to-r {
        padding: 6px 4px !important;
        border-radius: 8px !important;
        margin: 8px 0 !important;
    }
    
    .glass-card .bg-gradient-to-r h4 {
        font-size: 0.9rem !important;
        margin-bottom: 6px !important;
        padding: 0 2px !important;
    }
    
    .advanced-stats-section {
        padding: 6px 4px !important;
        margin: 8px 0 !important;
        border-radius: 8px !important;
    }
    
    .section-header {
        padding: 8px 6px !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
    }
    
    .section-header i {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
    }
    
    .section-header h3 {
        font-size: 1rem !important;
        margin-bottom: 3px !important;
        text-align: center;
    }
    
    .section-header p {
        font-size: 0.8rem !important;
        line-height: 1.1 !important;
        text-align: center;
    }
    
    .top-companies-section {
        margin: 8px 0 !important;
        padding: 0 2px !important;
    }
    
    .companies-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
    }
    
    .company-card-advanced {
        padding: 6px 4px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        border-width: 1px !important;
    }
    
    .company-card-header {
        padding-right: 40px !important;
        margin-bottom: 6px !important;
        padding-bottom: 6px !important;
        border-bottom-width: 1px !important;
    }
    
    .company-logo {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
    }
    
    .company-name-ar {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin-bottom: 2px !important;
    }
    
    .company-name-en {
        font-size: 0.7rem !important;
    }
    
    .company-rank-badge {
        width: 32px !important;
        height: 32px !important;
        top: 4px !important;
        left: 4px !important;
    }
    
    .rank-number {
        font-size: 0.9rem !important;
    }
    
    .rank-label {
        font-size: 0.5rem !important;
    }
    
    .company-rating-section {
        padding: 6px 4px !important;
        margin-bottom: 6px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }
    
    .overall-rating {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }
    
    .rating-value {
        font-size: 1.1rem !important;
    }
    
    .rating-label {
        font-size: 0.7rem !important;
    }
    
    .rating-stars {
        font-size: 0.8rem !important;
        letter-spacing: 0.05rem !important;
    }
    
    .total-ratings {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }
    
    .company-main-stats {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }
    
    .main-stat-item {
        padding: 4px !important;
        border-radius: 4px !important;
        gap: 4px !important;
    }
    
    .stat-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
        border-radius: 4px !important;
    }
    
    .stat-value {
        font-size: 0.9rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
        margin-top: 1px !important;
    }
    
    .questions-analysis {
        padding: 6px 4px !important;
        margin-bottom: 6px !important;
        border-radius: 6px !important;
    }
    
    .questions-title {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }
    
    .questions-grid {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }
    
    .question-item {
        padding: 4px !important;
        border-radius: 4px !important;
        gap: 2px !important;
    }
    
    .question-item span:first-child {
        font-size: 0.7rem !important;
    }
    
    .question-value {
        font-size: 0.8rem !important;
    }
    
    .question-bar {
        height: 4px !important;
    }
    
    .residents-section {
        padding: 6px 4px !important;
        margin-bottom: 6px !important;
        border-radius: 6px !important;
    }
    
    .residents-stats {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    
    .resident-type {
        padding: 4px 6px !important;
        border-radius: 4px !important;
        gap: 2px !important;
    }
    
    .resident-count, .excellent-rate {
        font-size: 0.9rem !important;
    }
    
    .company-description {
        padding: 4px !important;
        margin-bottom: 6px !important;
        border-radius: 6px !important;
        gap: 4px !important;
    }
    
    .desc-icon {
        font-size: 0.8rem !important;
    }
    
    .desc-text {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }
    
    .company-action-btn {
        padding: 6px !important;
        font-size: 0.8rem !important;
        height: 32px !important;
        border-radius: 6px !important;
        gap: 4px !important;
    }
    
    .company-action-btn i {
        font-size: 0.8rem !important;
    }
    
    .advanced-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
        padding: 0 2px !important;
    }
    
    .adv-card {
        margin: 0 !important;
        border-radius: 8px !important;
        padding: 6px 4px !important;
        border-width: 1px !important;
    }
    
    .adv-card-header {
        margin-bottom: 6px !important;
        padding-bottom: 6px !important;
        border-bottom-width: 1px !important;
        gap: 6px !important;
    }
    
    .adv-card-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }
    
    .adv-card-title {
        font-size: 0.85rem !important;
    }
    
    .adv-card-badge {
        font-size: 0.6rem !important;
        padding: 2px 4px !important;
    }
    
    .adv-main-value {
        margin-bottom: 6px !important;
    }
    
    .adv-value-number {
        font-size: 1.3rem !important;
    }
    
    .adv-value-label {
        font-size: 0.8rem !important;
        margin-left: 4px !important;
    }
    
    .adv-card-stats {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }
    
    .adv-stat-item {
        padding: 4px !important;
        border-radius: 4px !important;
    }
    
    .adv-stat-value {
        font-size: 0.9rem !important;
    }
    
    .adv-stat-label {
        font-size: 0.65rem !important;
    }
    
    .problems-analysis-grid {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        margin-top: 6px !important;
        padding: 0 2px !important;
    }
    
    .problem-card {
        padding: 4px !important;
        margin: 0 !important;
        border-radius: 4px !important;
        gap: 6px !important;
        border-width: 1px !important;
    }
    
    .problem-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.7rem !important;
        border-radius: 4px !important;
    }
    
    .problem-title {
        font-size: 0.7rem !important;
        margin-bottom: 2px !important;
    }
    
    .problem-count {
        font-size: 0.9rem !important;
    }
    
    .performance-metrics {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        margin-top: 6px !important;
        padding: 0 2px !important;
    }
    
    .metric-card {
        padding: 4px !important;
        margin: 0 !important;
        border-radius: 4px !important;
        border-width: 1px !important;
    }
    
    .metric-value {
        font-size: 0.9rem !important;
        margin-bottom: 3px !important;
        gap: 2px !important;
    }
    
    .metric-label {
        font-size: 0.65rem !important;
        margin-bottom: 3px !important;
    }
    
    .progress-circle {
        width: 32px !important;
        height: 32px !important;
    }
    
    .charts-grid-container {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
        padding: 0 2px !important;
    }
    
    .chart-card-advanced {
        padding: 6px 4px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        border-width: 1px !important;
    }
    
    .chart-card-header-glow {
        margin-bottom: 6px !important;
        padding-bottom: 6px !important;
        border-bottom-width: 1px !important;
        gap: 6px !important;
    }
    
    .header-icon-wrapper {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }
    
    .chart-card-title {
        font-size: 0.85rem !important;
    }
    
    .chart-card-subtitle {
        font-size: 0.7rem !important;
    }
    
    .chart-container-3d {
        height: 140px !important;
        margin: 4px 0 !important;
    }
    
    .chart-interactive-legend {
        margin-top: 6px !important;
        gap: 4px !important;
    }
    
    .legend-item {
        padding: 4px !important;
        border-radius: 4px !important;
        font-size: 0.7rem !important;
        gap: 4px !important;
    }
    
    .legend-marker {
        width: 8px !important;
        height: 8px !important;
    }
    
    .legend-value {
        font-size: 0.75rem !important;
        min-width: 24px !important;
    }
    
    .legend-percentage {
        font-size: 0.65rem !important;
        min-width: 28px !important;
    }
    
    .additional-stats-row {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        margin-top: 8px !important;
        padding: 0 2px !important;
    }
    
    .stats-mini-card {
        padding: 6px 4px !important;
        margin: 0 !important;
        border-radius: 6px !important;
        gap: 6px !important;
    }
    
    .mini-card-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
    }
    
    .mini-card-value {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }
    
    .mini-card-label {
        font-size: 0.7rem !important;
    }
}

/* =========== إصلاحات عامة للنصوص والعناوين =========== */
@media (max-width: 640px) {
    h2 { font-size: 1.2rem !important; }
    h3 { font-size: 1rem !important; }
    h4 { font-size: 0.9rem !important; }
    h5 { font-size: 0.85rem !important; }
    p, span, div { font-size: 0.8rem !important; }
    
    .p-2 { padding: 2px !important; }
    .p-3 { padding: 3px !important; }
    .p-4 { padding: 4px !important; }
    .p-5 { padding: 5px !important; }
    .p-6 { padding: 6px !important; }
    
    .px-2 { padding-left: 2px !important; padding-right: 2px !important; }
    .px-3 { padding-left: 3px !important; padding-right: 3px !important; }
    .px-4 { padding-left: 4px !important; padding-right: 4px !important; }
    
    .py-2 { padding-top: 2px !important; padding-bottom: 2px !important; }
    .py-3 { padding-top: 3px !important; padding-bottom: 3px !important; }
    .py-4 { padding-top: 4px !important; padding-bottom: 4px !important; }
    
    .m-2 { margin: 2px !important; }
    .m-3 { margin: 3px !important; }
    .m-4 { margin: 4px !important; }
    
    .mx-2 { margin-left: 2px !important; margin-right: 2px !important; }
    .mx-3 { margin-left: 3px !important; margin-right: 3px !important; }
    
    .my-2 { margin-top: 2px !important; margin-bottom: 2px !important; }
    .my-3 { margin-top: 3px !important; margin-bottom: 3px !important; }
    
    .gap-2 { gap: 2px !important; }
    .gap-3 { gap: 3px !important; }
    .gap-4 { gap: 4px !important; }
    
    .text-sm { font-size: 0.7rem !important; }
    .text-base { font-size: 0.8rem !important; }
    .text-lg { font-size: 0.9rem !important; }
    .text-xl { font-size: 1rem !important; }
    .text-2xl { font-size: 1.1rem !important; }
    .text-3xl { font-size: 1.2rem !important; }
    .text-4xl { font-size: 1.3rem !important; }
    
    .mb-1 { margin-bottom: 0.25rem !important; }
    .mb-2 { margin-bottom: 0.5rem !important; }
    .mb-3 { margin-bottom: 0.75rem !important; }
    .mb-4 { margin-bottom: 1rem !important; }
    .mb-5 { margin-bottom: 1.25rem !important; }
    .mb-6 { margin-bottom: 1.5rem !important; }
    .mb-8 { margin-bottom: 2rem !important; }
    
    html {
        font-size: 14px !important;
    }
    
    #stats {
        font-size: 0.8rem !important;
    }
    
    .select2-container {
        width: 100% !important;
    }
    
    .select2-dropdown {
        font-size: 0.8rem !important;
    }
    
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    button, .btn {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* حماية من نسخ المحتوى */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* منع النسخ */
body.prevent-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* إخفاء الصور في Inspect */
img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* حماية النصوص */
h1, h2, h3, h4, h5, h6, p, span, div {
    unicode-bidi: embed;
}

/* إصلاحات للشاشات الصغيرة */
@media (max-width: 768px) {
    footer {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    footer .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 640px) {
    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    footer p {
        padding: 0 1rem;
    }
}

/* أنيميشنات خفيفة فقط */
@keyframes glow-soft {
    0%, 100% { 
        opacity: 0.5;
    }
    50% { 
        opacity: 0.8;
    }
}

@keyframes gentle-bounce {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(-2px);
    }
}

@keyframes ping-soft {
    0% { 
        transform: scale(0.8);
        opacity: 1;
    }
    100% { 
        transform: scale(1.5);
        opacity: 0;
    }
}

/* تطبيق الأنيميشنات */
.animate-glow-soft {
    animation: glow-soft 3s ease-in-out infinite;
}

.animate-gentle-bounce {
    animation: gentle-bounce 2s ease-in-out infinite;
}

.animate-ping-soft {
    animation: ping-soft 2s ease-out infinite;
}

/* تحسينات للعرض على الموبايل */
@media (max-width: 768px) {
    .fixed {
        top: 5rem;
        left: 1rem;
    }
    
    .fixed button {
        width: 3rem;
        height: 3rem;
    }
    
    .fixed i.fa-scale-balanced {
        font-size: 1.4rem;
    }
    
    .absolute.-right-4 {
        right: -0.5rem;
    }
    
    .text-sm {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* تنسيق ملاحظة اختيارية العمارة */
.building-optional-note {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 2px solid rgba(20, 184, 166, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: gentlePulse 3s infinite;
    backdrop-filter: blur(10px);
}

.building-optional-note .note-icon {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: iconFloat 2s ease-in-out infinite;
}

.building-optional-note .note-icon i {
    color: white;
    font-size: 16px;
}

.building-optional-note .note-text {
    color: #0f766e;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
    flex: 1;
}

.building-optional-note .note-text strong {
    color: #0d9488;
    font-weight: 700;
}

.building-optional-note .note-text .highlight {
    color: #dc2626;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* تنسيقات رأس صفحة تحليل الشركة */
.company-analysis-header {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.company-header-bar {
    background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.company-icon-badge {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.company-title-section {
    flex: 1;
    margin: 0 30px;
}

.company-main-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.company-stats-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.back-to-list-btn {
    background: white;
    color: #0d9488;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-to-list-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.company-description-section {
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.description-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.description-header i {
    color: #0d9488;
    font-size: 24px;
}

.description-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.description-content {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #0d9488;
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
}

.no-description {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.company-meta-info {
    padding: 25px 30px;
    background: #f9fafb;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.meta-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.rating-badge-excellent {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.rating-badge-good {
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.rating-badge-poor {
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* ===== التصميم الأساسي ===== */
.modern-companies-cards {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* شريط المعلومات العلوي */
.cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 12px;
}

.count-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.count-badge i {
    font-size: 1.2rem;
}

.count-number {
    font-weight: bold;
    font-size: 1.4rem;
}

.count-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.pagination-info {
    font-size: 1.1rem;
    font-weight: 500;
}

.page-current {
    background: white;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: bold;
    margin: 0 4px;
}

/* شبكة الكروت */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ===== تحسينات تصميم صفحة التحليل ===== */

/* البطاقة الرئيسية */
.modern-section-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
    transition: all 0.3s ease;
}

.modern-section-card:hover {
    box-shadow: 0 15px 40px rgba(15, 118, 110, 0.12);
}

/* عنوان القسم */
.section-header-center {
    text-align: center;
    margin-bottom: 40px;
}

.title-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.title-icon {
    font-size: 32px;
    color: white;
}

.section-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* شبكة التحكم */
.controls-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* صف البحث والفلتر */
.search-filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Checkbox محسن */
.checkbox-container-modern {
    flex-shrink: 0;
}

.checkbox-label-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    min-width: 250px;
}

.checkbox-label-modern:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.modern-checkbox {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modern-checkbox:checked + .checkbox-custom {
    background: #0f766e;
    border-color: #0f766e;
}

.modern-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text-modern {
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.info-icon-modern {
    color: #94a3b8;
    font-size: 1rem;
}

/* مربع البحث */
.search-box-integrated {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

/* صف الترتيب */
.sorting-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sorting-label-container {
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sorting-label-text {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorting-selects-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* قسم البطاقات */
.cards-section-space {
    margin-top: 40px;
}

.loading-state-modern {
    text-align: center;
    padding: 60px 20px;
}

.modern-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #0f766e;
    border-radius: 50%;
    animation: modern-spin 1s linear infinite;
}

.loading-text-modern {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

/* التجاوب للجوال */
@media (max-width: 768px) {
    .modern-section-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .section-main-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .search-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .checkbox-label-modern {
        min-width: auto;
        padding: 12px 16px;
    }
    
    .search-box-integrated {
        min-width: 100%;
    }
    
    .sorting-controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .sorting-label-container {
        text-align: center;
        padding: 10px;
    }
    
    .sorting-selects-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .sorting-selects-container select {
        min-width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section-main-title {
        font-size: 1.6rem;
    }
    
    .title-icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .title-icon {
        font-size: 26px;
    }
    
    .modern-section-card {
        padding: 20px 15px;
        border-radius: 18px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== كروت الشركات - تصميم متكامل ===== */

/* الحاوية الرئيسية */
.companies-cards-wrapper {
    padding: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

/* === الكارت الأساسي === */
@media (min-width: 768px) {
    .company-card {
        min-height: 320px;
        padding: 24px;
    }
}

/* === رأس الكارت === */
@media (min-width: 768px) {
    .card-header {
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .company-icon {
        width: 56px;
        height: 56px;
    }
    
    .company-icon i {
        font-size: 24px;
    }
    
    .company-name {
        font-size: 1.25rem;
    }
}

/* === شارة التقييم === */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .rating-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }
}

.rating-legendary {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.rating-excellent {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
}

.rating-very-good {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.rating-good {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.rating-average {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: white;
}

.rating-poor {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.rating-number {
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 2px;
}

@media (min-width: 768px) {
    .rating-number {
        font-size: 0.95rem;
        padding: 2px 8px;
    }
}

/* === النجوم === */
.stars-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.star {
    font-size: 16px;
    line-height: 1;
    margin: 0 1px;
}

@media (min-width: 768px) {
    .star {
        font-size: 18px;
    }
}

.star.full {
    color: #f59e0b;
    font-weight: bold;
}

.star.half {
    color: #f59e0b;
    font-size: 14px;
    font-weight: bold;
}

@media (min-width: 768px) {
    .star.half {
        font-size: 16px;
    }
}

.star.empty {
    color: #e2e8f0;
}

/* === الإحصائيات === */
.card-stats {
    flex: 1;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .stats-grid {
        gap: 16px;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    overflow: hidden;
}

@media (min-width: 768px) {
    .stat-item {
        padding: 12px;
        gap: 12px;
        border-radius: 12px;
    }
}

.stat-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

@media (min-width: 768px) {
    .stat-item:hover {
        transform: translateX(4px);
    }
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .stat-icon {
        width: 36px;
        height: 36px;
    }
}

.stat-icon i {
    font-size: 14px;
    color: #0f766e;
}

@media (min-width: 768px) {
    .stat-icon i {
        font-size: 16px;
    }
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 1.1rem;
    }
}

.quality-high { color: #10b981; }
.quality-medium { color: #f59e0b; }
.quality-low { color: #ef4444; }

.satisfaction-high { color: #10b981; }
.satisfaction-medium { color: #f59e0b; }
.satisfaction-low { color: #ef4444; }

/* === زر التحليل === */
.analysis-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: auto;
    text-decoration: none;
}

@media (min-width: 768px) {
    .analysis-btn {
        padding: 16px;
        font-size: 1rem;
    }
}

.analysis-btn:hover {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.analysis-btn:active {
    transform: translateY(0);
}

.analysis-btn i:first-child {
    font-size: 16px;
}

@media (min-width: 768px) {
    .analysis-btn i:first-child {
        font-size: 18px;
    }
}

.analysis-btn i:last-child {
    font-size: 12px;
    transition: transform 0.2s;
}

@media (min-width: 768px) {
    .analysis-btn i:last-child {
        font-size: 14px;
    }
}

.analysis-btn:hover i:last-child {
    transform: translateX(-3px);
}

/* === حالة عدم وجود شركات === */
.no-companies {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .no-companies {
        padding: 60px 20px;
        margin: 40px 0;
    }
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #94a3b8;
}

@media (min-width: 768px) {
    .empty-icon {
        font-size: 64px;
        margin-bottom: 20px;
    }
}

.no-companies h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .no-companies h3 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
}

.no-companies p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .no-companies p {
        font-size: 1rem;
    }
}

/* === تحسينات خاصة للجوال === */
@media (max-width: 640px) {
    .companies-cards-wrapper {
        padding: 10px;
    }
    
    .cards-grid {
        gap: 12px;
    }
    
    .company-card {
        padding: 16px;
        border-radius: 14px;
    }
    
    .card-header {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .company-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .company-icon i {
        font-size: 18px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .rating-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .stats-grid {
        gap: 8px;
    }
    
    .stat-item {
        padding: 8px;
        gap: 8px;
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
    }
    
    .stat-icon i {
        font-size: 12px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .analysis-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .analysis-btn i:first-child {
        font-size: 14px;
    }
}

/* === تحسينات للأجهزة الكبيرة === */
@media (min-width: 1440px) {
    .companies-cards-wrapper {
        padding: 30px 20px;
    }
    
    .cards-grid {
        gap: 30px;
    }
    
    .company-card {
        padding: 28px;
    }
}

/* ============ Animations ============ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.2) rotate(5deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progress {
    from { width: 0%; }
    to { width: attr(width); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scale {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

@keyframes flip {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0); }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes clickEffect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes progressTrack {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseAccept {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes starFill {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes gentleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes modern-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gentlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* تأثير التلميح عند الضغط الطويل في الموبايل */
@media (max-width: 768px) {
    #legalDisclaimerModal button {
        -webkit-tap-highlight-color: rgba(13, 148, 136, 0.1) !important;
    }
}