 :root {
     --orange: #00085e;
     --orange-dark: #00085e;
     --orange-light: #0316ec;
     --yellow: #8690ff;
     --yellow-light: #8690ff;
     --dark-blue: #00085e;
     --dark-gray: #00085e;
     --card-bg: #ffffff;
     --card-border: #e2e8f0;
     --text-primary: #0316ec;
     --text-secondary: #00085e;
     --text-muted: #8690ff;
     --text-dim: #6B7280;
     --white: #8690ff;
     --gradient-mixed: linear-gradient(135deg, #0316ec, #8690ff);
     --gradient-gold: linear-gradient(135deg, #8690ff, #8690ff);
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 @keyframes blobFloat {

     0%,
     100% {
         transform: translate(0, 0) scale(1);
     }

     33% {
         transform: translate(25px, -30px) scale(1.04);
     }

     66% {
         transform: translate(-15px, 20px) scale(0.96);
     }
 }

 .grid-pattern {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-image: radial-gradient(circle, rgba(249, 115, 22, 0.035) 1px, transparent 1px);
     background-size: 48px 48px;
     pointer-events: none;
     z-index: 0;
 }

 .content-wrapper {
     position: relative;
     z-index: 1;
 }

 .page-title {
     font-size: clamp(34px, 6vw, 52px);
     font-weight: 900;
     line-height: 1.2;
     margin-bottom: 16px;
     animation: fadeInDown 0.6s ease 0.1s both;
 }

 .page-title .gradient-text {
     background: var(--gradient-mixed);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 .page-subtitle {
     font-size: 17px;
     color: var(--text-muted);
     max-width: 550px;
     margin: 0 auto;
     line-height: 1.8;
     font-weight: 300;
     animation: fadeInDown 0.6s ease 0.2s both;
 }

 /* === عداد العملاء === */
 .stats-bar {
     display: flex;
     justify-content: center;
     gap: 40px;
     flex-wrap: wrap;
     padding: 40px 20px 20px;
     animation: fadeInDown 0.6s ease 0.3s both;
 }

 .stat-item {
     text-align: center;
 }

 .stat-number {
     font-size: 36px;
     font-weight: 900;
     background: var(--gradient-mixed);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     line-height: 1.1;
 }

 .stat-label {
     font-size: 13px;
     color: var(--text-dim);
     margin-top: 4px;
     font-weight: 400;
 }

 .stat-divider {
     width: 1px;
     height: 50px;
     background: var(--card-border);
     align-self: center;
 }

 /* === أزرار الفلترة === */
 .filter-section {
     padding: 50px 20px 10px;
     max-width: 1200px;
     margin: 0 auto;
 }

 .filter-wrapper {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 12px;
 }

 .filter-btn {
     display: inline-flex;
     align-items: center;
     gap: 10px;
     padding: 14px 28px;
     border-radius: 14px;
     font-family: 'Tajawal', sans-serif;
     font-size: 15px;
     font-weight: 700;
     border: 2px solid var(--card-border);
     background: var(--card-bg);
     color: var(--text-secondary);
     cursor: pointer;
     transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
 }

 .filter-btn::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
     transition: left 0.5s ease;
 }

 .filter-btn:hover::before {
     left: 100%;
 }

 .filter-btn:hover {
     border-color: rgba(249, 115, 22, 0.3);
     color: var(--white);
     transform: translateY(-2px);
 }

 .filter-btn.active {
     background: var(--gradient-mixed);
     border-color: transparent;
     color: var(--dark-blue);
     box-shadow: 0 4px 24px rgba(249, 115, 22, 0.3);
 }

 .filter-btn.active:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
 }

 .filter-btn .flag-icon {
     font-size: 20px;
     line-height: 1;
 }

 .filter-btn .count-badge {
     background: rgba(0, 0, 0, 0.15);
     padding: 2px 9px;
     border-radius: 20px;
     font-size: 12px;
     font-weight: 800;
 }

 .filter-btn.active .count-badge {
     background: rgba(0, 0, 0, 0.2);
 }

 /* === النتائج الحية === */
 .results-info {
     text-align: center;
     padding: 28px 20px 8px;
     font-size: 14px;
     color: var(--text-dim);
 }

 .results-info span {
     color: var(--orange);
     font-weight: 700;
 }

 /* === شبكة الشعارات === */
 .logos-section {
     padding: 20px 20px 80px;
     max-width: 1200px;
     margin: 0 auto;
 }

 .logos-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
     gap: 20px;
 }

 /* === بطاقة الشعار === */
 .logo-card {
     background: var(--card-bg);
     border: 1px solid var(--card-border);
     border-radius: 20px;
     padding: 28px 20px;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 16px;
     min-height: 240px;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     cursor: default;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 }

 .logo-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 2px;
     background: transparent;
     transition: background 0.3s ease;
 }

 .logo-card:hover {
     transform: translateY(-6px);
     border-color: rgba(249, 115, 22, 0.3);
     box-shadow: 0 16px 48px rgba(249, 115, 22, 0.1);
 }

 .logo-card:hover::before {
     background: var(--gradient-mixed);
 }

 .logo-card.hidden {
     opacity: 0;
     transform: scale(0.8);
     pointer-events: none;
     position: absolute;
     visibility: hidden;
 }

 .logo-card.visible {
     opacity: 1;
     transform: scale(1);
     position: relative;
     visibility: visible;
 }

 /* مقاس الشعار الموحد */
 .logo-img-wrapper {
     width: 150px;
     height: 150px;
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: transform 0.3s ease;
     flex-shrink: 0;
 }

 .logo-card:hover .logo-img-wrapper {
     transform: scale(1.05);
 }

 .logo-img-wrapper img {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     filter: grayscale(1) !important;

     transition: filter 0.3s ease;
 }

 .logo-card:hover .logo-img-wrapper img {
     filter: grayscale(0) !important;
 }

 .logo-category-tag {
     position: absolute;
     top: 10px;
     left: 10px;
     font-size: 10px;
     font-weight: 700;
     padding: 3px 10px;
     border-radius: 20px;
     letter-spacing: 0.3px;
 }

 .tag-egypt {
     background: rgba(220, 38, 38, 0.15);
     color: #FCA5A5;
 }

 .tag-uae {
     background: rgba(249, 115, 22, 0.15);
     color: var(--orange-light);
 }

 .tag-saudi {
     background: rgba(34, 197, 94, 0.15);
     color: #86EFAC;
 }

 .tag-online {
     background: rgba(99, 102, 241, 0.15);
     color: #A5B4FC;
 }

 /* === فاصل === */
 .divider {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 16px;
     padding: 30px 0 0;
     max-width: 1200px;
     margin: 0 auto;
 }

 .divider-line {
     height: 1px;
     width: 80px;
     background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.25), transparent);
 }

 .divider-diamond {
     width: 8px;
     height: 8px;
     background: var(--orange);
     transform: rotate(45deg);
     border-radius: 2px;
 }

 /* === حالة لا توجد نتائج === */
 .no-results {
     display: none;
     text-align: center;
     padding: 80px 20px;
     grid-column: 1 / -1;
 }

 .no-results i {
     font-size: 48px;
     color: var(--text-dim);
     margin-bottom: 16px;
 }

 .no-results p {
     font-size: 16px;
     color: var(--text-dim);
 }

 /* === Animations === */
 @keyframes fadeInDown {
     from {
         opacity: 0;
         transform: translateY(-20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes cardAppear {
     from {
         opacity: 0;
         transform: translateY(20px) scale(0.95);
     }

     to {
         opacity: 1;
         transform: translateY(0) scale(1);
     }
 }

 .logo-card.visible {
     animation: cardAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
 }

 /* === Toast === */
 .toast {
     position: fixed;
     bottom: 30px;
     left: 50%;
     transform: translateX(-50%) translateY(100px);
     background: var(--dark-gray);
     border: 1px solid var(--orange);
     color: var(--white);
     padding: 14px 26px;
     border-radius: 16px;
     font-family: 'Tajawal', sans-serif;
     font-size: 14px;
     font-weight: 600;
     display: flex;
     align-items: center;
     gap: 10px;
     z-index: 1000;
     transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
     max-width: 90vw;
 }

 .toast.show {
     transform: translateX(-50%) translateY(0);
 }

 .toast i {
     color: var(--yellow);
     font-size: 16px;
 }

 /* === Responsive === */
 @media (max-width: 768px) {
     .logos-grid {
         grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
         gap: 14px;
     }

     .logo-card {
         min-height: 170px;
         padding: 20px 12px;
     }

     .logo-img-wrapper {
         width: 100px;
         height: 100px;
         padding: 14px;
     }

     .stats-bar {
         gap: 24px;
     }

     .stat-number {
         font-size: 28px;
     }

     .stat-divider {
         height: 40px;
     }

     .filter-btn {
         padding: 12px 20px;
         font-size: 14px;
     }

     .cta-buttons {
         flex-direction: column;
         align-items: center;
     }

     .btn-cta-whatsapp,
     .btn-cta-orange {
         width: 100%;
         max-width: 300px;
         justify-content: center;
     }
 }

 @media (max-width: 480px) {
     .logos-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 12px;
     }

     .logo-img-wrapper {
         width: 90px;
         height: 90px;
         padding: 12px;
     }

     .logo-name {
         font-size: 12px;
     }

     .logo-category-tag {
         font-size: 9px;
         padding: 2px 8px;
     }
 }

 @media (prefers-reduced-motion: reduce) {

     *,
     *::before,
     *::after {
         animation-duration: 0.01ms !important;
         transition-duration: 0.01ms !important;
     }
 }