/* ========== الأساسيات العامة ========== */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Kufi Arabic', sans-serif;
}
*, *::before, *::after {
  box-sizing: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== الهيدر الأساسي + الكلاس الخاص ========== */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}
.global-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* تخصيص للصفحة الرئيسية */
.homepage .main-header.global-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* عند التمرير */
.global-header.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ========== محتوى الهيدر ========== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-logo {
  height: 48px;
}

/* ========== روابط القائمة ========== */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
  transition: 0.3s ease;
  white-space: nowrap;
  position: relative;
}
.nav-links a:hover {
  background: rgba(22, 225, 199, 0.1);
  color: #16e1c7;
}

/* ========== الصندوق الأيسر: اللغة + الأزرار + الجوال ========== */
.left-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== تبديل اللغة ========== */
.lang-dropdown {
  position: relative;
}
.lang-btn {
  background-color: #f1f1f1;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 40px;
}
.lang-options {
  display: none;
  position: absolute;
  top: 110%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 120px;
  z-index: 10;
}
.lang-options a {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}
.flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

/* ========== الأزرار الرئيسية (تسجيل / تسجيل دخول) ========== */
.desktop-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-width: 140px;
  border: 1px solid rgba(255,255,255,0.2);
}
.glass-btn.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
  animation: shimmer 2.5s infinite ease-in-out;
  z-index: 0;
}
@keyframes shimmer {
  0% { left: -75%; }
  50% { left: 125%; }
  100% { left: -75%; }
}
.btn-login {
  background: linear-gradient(to right, #01052d, #01073e);
}
.btn-register {
  background: linear-gradient(to right, #16e1c7, #24f5da);
  color: #01052d;
}

/* ========== قائمة الجوال ========== */
.menu-toggle {
  display: block;
  cursor: pointer;
}
.menu-toggle i {
  font-size: 20px;
  color: #333;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  background: white;
  position: fixed;
  top: 80px;
  right: 0;
  left: 0;
  width: 100%;
  padding: 0 20px;
  border-top: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}
.mobile-nav.active {
  max-height: 600px;
  padding: 20px;
  opacity: 1;
  visibility: visible;
}
.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f2f2f2;
}

/* ========== أزرار الجوال ========== */
.mobile-buttons {
  display: none;
}
.mobile-buttons .small-btn {
  font-size: 12px;
  padding: 10px 20px;
  height: 44px;
  min-width: 130px;
  border-radius: 10px;
  color: white !important;
}
.mobile-buttons .btn-register {
  color: #01052d !important;
}
.mobile-buttons .btn-login {
  color: white !important;
}

/* ========== الشارات "قريباً" ========== */
.soon-badge,
.soon-badge-inline {
  background-color: #ff4f70;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px;
  line-height: 1;
  display: inline-block;
  margin-inline-start: 6px;
}
.nav-item-with-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
}
@media (min-width: 992px) {
  .nav-item-with-badge .soon-badge-inline {
    position: absolute;
    top: -8px;
    right: -14px;
  }
}
.mobile-item-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.mobile-item-with-badge span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

/* ========== RTL / LTR ========== */
.rtl { direction: rtl; }
.ltr { direction: ltr; }

/* ========== استجابة ========== */
@media (max-width: 991px) {
  .desktop-buttons { display: none !important; }
  .nav-links { display: none; }
  .mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
  }
}
@media (min-width: 992px) {
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}


.global-header.scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
