* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
  }
  
  :root {
    --primary: #C3002F;
    --primary-dark: #A10026;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-light: #f8f8f8;
    --border-color: #e2e2e2;
    --primary-color: #e31837;
    --background-color: #f8f9fa;
    --text-color: #2d3436;
    --border-color: #e9ecef;
    --hover-color: #f1f3f5;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --footer-link-hover: var(--primary-color);
  }
  
  body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
  .main {
    flex: 1;
    padding: 4rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
  }
  
  .faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .faq-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    transition: background-color 0.3s ease;
  }
  
  .faq-question:hover {
    background-color: var(--hover-color);
  }
  
  .question-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-color);
    flex-grow: 1;
    margin-right: 1rem;
  }
  
  .arrow {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1rem;
    min-width: 20px;
  }
  
  .faq-item.active {
    border-color: var(--primary-color);
  }
  
  .faq-item.active .arrow {
    transform: rotate(180deg);
  }
  
  .faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background-color: var(--hover-color);
    border-top: 0px solid var(--border-color);
  }
  
  .faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 500px;
    border-top-width: 1px;
  }
  
  .faq-answer p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  .footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 4rem;
    position: relative;
  }
  
  .footer-top {
    padding: 4rem 0;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .footer-section {
    display: flex;
    flex-direction: column;
  }
  
  .footer-title {
    color: var(--footer-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
  }
  
  .footer-links a:hover {
    color: var(--footer-link-hover);
  }
  
  .footer-icon {
    width: 18px;
    height: 18px;
  }
  
  .whatsapp-link i {
    font-size: 20px;
  }
  
  .footer-bottom {
    background-color: #000000;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  @media (max-width: 992px) {
    .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .header {
      padding: 3.5rem 1rem;
    }
    
    .header p {
      font-size: 2.5rem;
    }
    
    .main {
      padding: 2rem 1rem;
    }
    
    .question-text {
      font-size: 1.1rem;
    }
    
    .faq-answer p {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 576px) {
    .footer-grid {
      grid-template-columns: 1fr;
    }
    
    .footer-section {
      text-align: center;
    }
    
    .footer-title::after {
      right: 50%;
      transform: translateX(50%);
    }
    
    .footer-links a {
      justify-content: center;
    }
  }
  /* Top Bar */
.top-bar {
    background-color: var(--text-primary);
    color: white;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .mobile-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
  }
  
  .menu-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
  }
  
  .menu-button:hover {
    background-color: rgba(255,255,255,0.1);
  }
  
  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .action-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .icon-button {
    position: relative;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
  }
  
  .icon-button:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
  }
  
  .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
  /* التصميم العام (لجميع الأجهزة) */
  .auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .auth-link{
    color: white;
    font-size: 14px;
  }
  .user-menu {
    position: relative;
  }
  
  .user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
  }
  
  .user-button:hover {
    background-color: rgba(255,255,255,0.1);
  }
  
  .menu-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .user-name {
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 260px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
    z-index: 50;
    overflow: hidden;
    transform-origin: top right;
    animation: dropdownShow 0.2s ease-out;
  }
  
  @keyframes dropdownShow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
  }
  
  .dropdown-menu.active {
    display: block;
  }
  
  .dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
  }
  
  .email-small {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
  }
  
  .menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-primary);
    text-align: right;
    transition: all 0.2s;
  }
  
  .menu-item:hover {
    background-color: var(--bg-light);
    padding-right: 1.25rem;
  }
  
  .menu-item i {
    color: var(--text-secondary);
    transition: color 0.2s;
  }
  
  .menu-item:hover i {
    color: var(--primary);
  }
  
  .menu-item.logout {
    color: var(--primary);
  }
  
  .menu-item.logout i {
    color: var(--primary);
  }
  
  .menu-item.logout:hover {
    background-color: #fff1f1;
  }
  
  .divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.25rem 0;
  }
  
  
  /* Desktop Menu */
  /* جعل القائمة المنسدلة متجاوبة */
  #desktopDropdownMenu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 200px;
    z-index: 1000;
    display: none; /* الافتراضي مخفي */
  }
  
  #desktopDropdownMenu.active {
    display: block;
  }
  
  @media (max-width: 1610px) {
    #desktopDropdownMenu {
      right: auto;
      left: 0;
      min-width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    #desktopDropdownMenu {
      position: fixed;
      top: 60px;
      left: 0;
      right: 0;
      min-width: 100%;
      max-height: 80vh;
      overflow-y: auto;
    }
  }
  
  .desktop-menu {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }
  
  .selector-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
  }
  
  .selector-button:hover {
    background-color: rgba(255,255,255,0.1);
  }
  
  .menu-left, .menu-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  /* Main Content */
  .main-content {
    padding: 1.5rem 0;
  }
  
  .logo {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
  }
  
  .main-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
  
  /* Stats Grid */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
  }
  
  .stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
  }
  
  .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
  }
  
  /* Search */
  .search-container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto 2rem;
    position: relative;
    padding: 0 1rem;
  }
  
  .search-box-container {
    position: relative;
  }
  
  .search-box {
    width: 100%;
    padding: 1rem;
    padding-right: 1rem;
    padding-left: 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    transition: all 0.3s;
    height: 52px;
  }
  
  .search-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(195, 0, 47, 0.1);
  }
  
  .search-box.expanded {
    height: 128px;
  }
  
  .search-buttons {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
  }
  
  .search-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.625rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }
  
  .search-button:hover {
    background: var(--primary-dark);
  }
  
  .search-examples {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    font-size: 0.875rem;
    color: var(--primary);
    flex-wrap: wrap;
  }
  
  /* Suggestions Dropdown */
  .suggestions-dropdown {
    position: absolute;
    width: 100%;
    margin-top: 0.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
  }
  
  .suggestion-item {
    padding: 0.875rem 1rem;
    cursor: pointer;
    text-align: right;
    transition: background-color 0.2s;
  }
  
  .suggestion-item:hover {
    background-color: var(--bg-light);
  }
  
  /* Catalogs Section */
  .catalogs-section {
    background: var(--bg-light);
    padding: 2rem 0;
    margin-top: 2rem;
  }
  
  .section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .catalogs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .catalog-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .catalog-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
  
  .catalog-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
  }
  
  .catalog-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
  }
  
  .hidden {
    display: none;
  }
  
  
  /* Responsive Design */
  @media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
  
    .desktop-menu {
        display: flex;
    }
  
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
  
    .catalogs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
  
    .search-box {
        height: 64px;
    }
  
    .catalog-logo {
        height: 64px;
    }
  
    .main-content {
        padding: 3rem 0;
    }
  
    .logo {
        font-size: 2.25rem;
    }
  
    .main-title {
        font-size: 2rem;
    }
  }
  
  /* Fix for mobile menu overlap */
  @media (max-width: 767px) {
    .desktop-menu:not(.hidden) {
        position: fixed;
        top: 48px;
        right: 0;
        left: 0;
        background: var(--text-primary);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        animation: slideDown 0.3s ease-out;
    }
  
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
  
    .desktop-menu .menu-left,
    .desktop-menu .menu-right {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
  
    .desktop-menu .selector-button,
    .desktop-menu .icon-button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        border-radius: 8px;
        background-color: rgba(255,255,255,0.05);
    }
  
    .desktop-menu .selector-button:hover,
    .desktop-menu .icon-button:hover {
        background-color: rgba(255,255,255,0.1);
    }
  
    .desktop-menu .dropdown-menu {
        width: 100%;
        position: static;
        margin-top: 0.75rem;
        border-radius: 8px;
    }
  
    .stat-card {
        padding: 1.25rem;
    }
  
    .search-box {
        padding-left: 3.5rem;
    }
  
    .dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        margin: 0;
        animation: slideUp 0.3s ease-out;
    }
  
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
  
    .user-name {
        display: none;
    }
  }
  /* Side Menu Dropdown */
  .side-menu-dropdown {
    position: relative;
  }
  
  .dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
  }
  
  .dropdown-icon {
    margin-right: auto;
    transition: transform 0.3s ease;
  }
  
  .dropdown-trigger.active .dropdown-icon {
    transform: rotate(180deg);
  }
  
  .dropdown-content {
    display: none;
    padding: 0.5rem 0;
    background-color: var(--bg-light);
    border-right: 3px solid var(--primary);
  }
  
  .dropdown-content.active {
    display: block;
  }
  
  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    padding-right: 3rem;
  }
  
  .dropdown-item i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
  }
  
  .dropdown-item:hover i {
    color: var(--primary);
  }
  
  /* Add these styles at the end of your CSS file */
  .side-menu {
    position: fixed;
    top: 0;
    right: -320px; /* Start off-screen */
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
  }
  
  .side-menu.active {
    transform: translateX(-320px);
  }
  
  .side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
  }
  
  .side-menu-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .close-button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .close-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
  }
  
  .side-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
  }
  
  .side-menu-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }
  
  .side-menu-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .section-label {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
  
  .side-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .side-menu-item:hover {
    background-color: var(--bg-light);
    padding-right: 1.75rem;
  }
  
  .side-menu-item i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
  }
  
  .side-menu-item:hover i {
    color: var(--primary);
  }
  
  /* Dropdown styles */
  .side-menu-dropdown {
    width: 100%;
  }
  
  .dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
  }
  
  .dropdown-icon {
    margin-right: auto;
    transition: transform 0.3s ease;
  }
  
  .dropdown-trigger.active .dropdown-icon {
    transform: rotate(180deg);
  }
  
  .dropdown-content {
    display: none;
    padding: 0.5rem 0;
    background-color: var(--bg-light);
    border-right: 3px solid var(--primary);
  }
  
  .dropdown-content.active {
    display: block;
  }
  
  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    padding-right: 3rem;
  }
  
  /* Overlay */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1999;
    backdrop-filter: blur(4px);
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  @media (max-width: 767px) {
    .side-menu {
        width: 280px;
        right: -280px;
    }
    
    .side-menu.active {
        transform: translateX(-280px);
    }
  }