/**************************/
/* HEADER */
/**************************/

.header {
  padding: 0 2.5rem;
  font-size: 2rem;
  font-weight: 500;
  background: rgba(255, 254, 249, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 0 2.4rem 2.4rem;
  box-shadow: 0 0.8rem 3.2rem rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 130rem;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  animation: slideDown 0.5s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.navbar-brand {
  padding: 1.2rem 0;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.header-img {
  height: 6rem;
  width: auto;
  filter: drop-shadow(0 0.3rem 0.6rem rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
}

.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(35, 135, 194, 0.2), transparent);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 1.2rem 2.5rem !important;
  color: var(--color-grey-dark-2);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.9rem;
  font-weight: 500;
  border-radius: 1.2rem;
  text-decoration: none;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.08) 0%, rgba(35, 135, 194, 0.12) 100%);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.2rem;
  z-index: -1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 0.3rem;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 2rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0.2rem 0.8rem rgba(35, 135, 194, 0.4);
}

.nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-0.1rem);
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
  background: transparent;
  box-shadow: none;
  transform: translateY(-0.1rem);
}

.nav-link.active::before {
  opacity: 0;
  transform: scale(0);
  background: transparent;
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
  width: 85%;
  height: 0.4rem;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 0.3rem 1.2rem rgba(35, 135, 194, 0.6), 0 0 1rem rgba(35, 135, 194, 0.3);
  animation: underline-pulse 2s ease-in-out infinite;
}

@keyframes underline-pulse {
  0%, 100% {
    box-shadow: 0 0.3rem 1.2rem rgba(35, 135, 194, 0.6), 0 0 1rem rgba(35, 135, 194, 0.3);
  }
  50% {
    box-shadow: 0 0.4rem 1.6rem rgba(35, 135, 194, 0.8), 0 0 1.4rem rgba(35, 135, 194, 0.5);
  }
}

.navbar-search-wrapper {
  display: flex;
  align-items: center;
  margin: 0 2rem;
  flex: 0 0 auto;
}

.navbar-search-wrapper .search {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.2rem;
  border: 1px solid rgba(35, 135, 194, 0.15);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);
  min-width: 30rem;
  max-width: 40rem;
  transition: all 0.3s ease;
}

.navbar-search-wrapper .search:hover {
  border-color: rgba(35, 135, 194, 0.3);
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.12);
}

.navbar-search-wrapper .search-group {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(35, 135, 194, 0.05);
  border-radius: 0.8rem;
  min-width: 0;
}

.navbar-search-wrapper .search-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.navbar-search-wrapper .search-input {
  flex: 1;
  font-size: 1.4rem;
  font-weight: 400;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-grey-dark-2);
  min-width: 0;
}

.navbar-search-wrapper .search-input::placeholder {
  color: var(--color-grey-dark-2);
  opacity: 0.6;
}

.navbar-search-wrapper .search-icon-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.navbar-search-wrapper .search-icon-btn:hover {
  opacity: 1;
}

.navbar-search-wrapper .search-btn {
  border: none;
  border-radius: 0.8rem;
  padding: 0.8rem 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  font-size: 1.4rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 0.2rem 0.8rem rgba(35, 135, 194, 0.3);
}

.navbar-search-wrapper .search-btn:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.4rem 1.2rem rgba(35, 135, 194, 0.4);
}

.navbar-search-wrapper .search-btn:active {
  transform: translateY(0);
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.user-nav > a,
.user-nav > .custom-dropdown {
  position: relative;
}

.user-icon {
  width: 2.4rem;
  height: 2.4rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: var(--color-grey-dark-2);
}

.user-icon:hover {
  transform: scale(1.15) rotate(5deg);
  color: var(--color-primary);
  filter: drop-shadow(0 0.4rem 0.8rem rgba(35, 135, 194, 0.3));
}

/* Icon wrapper for better presentation */
.user-nav > a,
.user-nav .dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.user-nav > a:hover,
.user-nav .dropdown-btn:hover {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.1) 0%, rgba(35, 135, 194, 0.15) 100%);
  transform: translateY(-0.3rem);
}

.user-nav > a::after,
.user-nav .dropdown-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.user-nav > a:hover::after,
.user-nav .dropdown-btn:hover::after {
  opacity: 0.12;
  transform: scale(1.2);
}

.user-nav > a:active,
.user-nav .dropdown-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Badge for notifications */
.icon-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  background: linear-gradient(135deg, #ff4757 0%, #ee0a24 100%);
  color: #fff;
  border-radius: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.3rem 1rem rgba(255, 71, 87, 0.5), 0 0 2rem rgba(255, 71, 87, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
  border: 2.5px solid #fff;
  z-index: 10;
  letter-spacing: -0.05rem;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0.3rem 1rem rgba(255, 71, 87, 0.5), 0 0 2rem rgba(255, 71, 87, 0.3);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0.4rem 1.2rem rgba(255, 71, 87, 0.6), 0 0 2.5rem rgba(255, 71, 87, 0.4);
  }
}

.user-nav > a:hover .icon-badge,
.user-nav .dropdown-btn:hover .icon-badge {
  animation-play-state: paused;
  transform: scale(1.15) rotate(-5deg);
}

/* .user {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  animation: rotate-border 3s linear infinite;
} */

@keyframes rotate-border {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* .user:hover {
  animation-play-state: paused;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0.6rem 1.6rem rgba(35, 135, 194, 0.4);
} */

.user img {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid #fff;
  transition: all 0.3s ease;
}

.user:hover img {
  transform: scale(1.05);
}

.divider {
  width: 2px;
  height: 3.5rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(35, 135, 194, 0.2) 20%,
    rgba(35, 135, 194, 0.4) 50%,
    rgba(35, 135, 194, 0.2) 80%,
    transparent 100%
  );
  border-radius: 2px;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

.custom-dropdown {
  position: relative;
}

.dropdown-btn {
  border: none;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  outline: none;
}

.dropdown-btn:focus {
  outline: none;
}

.dropdown-btn:active {
  transform: scale(0.95);
}

/* Language dropdown specific styling */
.language {
  order: 999;
}

.language .dropdown-btn {
  border-radius: 2rem;
  padding: 0.8rem 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(35, 135, 194, 0.25);
  font-weight: 600;
  color: var(--color-grey-dark-2);
  width: auto;
  min-width: 8rem;
  height: 4.4rem;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language .language-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
}

.language .language-text {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.language .language-arrow {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.language.open .language-arrow {
  transform: rotate(180deg);
}

.language .dropdown-btn:hover {
  background: rgba(35, 135, 194, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-0.2rem);
  box-shadow: 0 4px 12px rgba(35, 135, 194, 0.25);
}

.language .dropdown-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(35, 135, 194, 0.2);
}

.language .dropdown-btn img {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.3s ease;
}

.language.open .dropdown-btn img {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  width: 40rem;
  min-width: 32rem;
  max-width: calc(100vw - 4rem);
  padding: 0;
  border-radius: 2.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(35, 135, 194, 0.1);
  border: 1px solid rgba(35, 135, 194, 0.15);
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem) scale(0.95);
  overflow: hidden;
  max-height: 70vh;
  min-height: 30rem;
  display: flex;
  flex-direction: column;
}

.custom-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
  z-index: 1;
}

.custom-dropdown:hover .user-icon {
  color: var(--color-primary);
  fill: var(--color-primary);
}

.active .user-icon {
  fill: var(--color-primary);
}

.custom-dropdown.open .custom-dropdown-menu,
.custom-dropdown:hover .custom-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: initial;
  transform: translateY(0) scale(1);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(35, 135, 194, 0.2);
}

/* إبقاء القائمة مفتوحة عند النقر عليها */
.custom-dropdown.open .custom-dropdown-menu {
  pointer-events: auto;
}

.custom-dropdown-menu {
  pointer-events: auto;
}

.dropdown-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 2rem 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 0.95) 100%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, transparent, rgba(35, 135, 194, 0.2), transparent) 1;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.dropdown-menu-header .heading-tertiary {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown-header-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background-color: var(--color-grey-light-1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dropdown-header-icon:hover {
  background-color: var(--color-primary-light);
  transform: rotate(90deg) scale(1.1);
}

.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-list li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  padding: 1.2rem 1.8rem;
  border-radius: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.08) 0%, rgba(35, 135, 194, 0.12) 100%);
  transform: translateX(0.5rem);
  border-color: rgba(35, 135, 194, 0.2);
  box-shadow: 0 0.2rem 0.8rem rgba(35, 135, 194, 0.1);
}

.dropdown-item img:not(.dropdown-item-img):not(.arrow-1):not(.arrow-2) {
  width: 2.4rem;
  height: 2.4rem;
  transition: all 0.3s ease;
  filter: grayscale(0.3);
}

.dropdown-item:hover img:not(.dropdown-item-img):not(.arrow-1):not(.arrow-2) {
  transform: scale(1.1) rotate(5deg);
  filter: grayscale(0);
}

.dropdown-item span {
  font-size: 1.4rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.dropdown-item:hover span {
  color: var(--color-primary);
}

.dropdown-item--notify::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0.6rem rgba(35, 135, 194, 0.6);
  animation: pulse-notification 2s ease-in-out infinite;
}

.dropdown-item--notify .dropdown-item-img {
  opacity: 0.7;
}

.dropdown-item--notify .chat-text {
  width: 20rem;
}

.dropdown-item-img {
  width: 5.8rem;
  height: 5.8rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
  border: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.1);
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) border-box;
}

.dropdown-item:hover .dropdown-item-img {
  box-shadow: 0 0.6rem 1.6rem rgba(35, 135, 194, 0.3);
  transform: scale(1.08) rotate(3deg);
  border-color: var(--color-primary);
}

.chat-sender {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-grey-dark-2);
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item:hover .chat-sender {
  color: var(--color-primary);
}

.chats-list .dropdown-item {
  padding: 1.4rem 2.8rem;
  margin: 0 1rem 0.8rem;
  border-radius: 1.6rem;
  border: 2px solid transparent;
}

.chats-list .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.08) 0%, rgba(35, 135, 194, 0.12) 100%);
  border-color: rgba(35, 135, 194, 0.2);
  transform: translateX(0.3rem);
}

.chats-dropdown {
  width: 40rem;
  max-width: calc(100vw - 4rem);
  min-width: 32rem;
  max-height: 70vh;
  min-height: 30rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chats-dropdown .dropdown-menu-header {
  padding: 2rem 2.5rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.chats-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 0;
  max-height: calc(70vh - 8rem);
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(35, 135, 194, 0.1);
}

.chats-list::-webkit-scrollbar {
  width: 12px;
}

.chats-list::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(35, 135, 194, 0.05) 0%, rgba(35, 135, 194, 0.08) 100%);
  border-radius: 12px;
  margin: 1.5rem 0.5rem;
  border: 1px solid rgba(35, 135, 194, 0.1);
}

.chats-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 12px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0.6rem rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.chats-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0.8rem rgba(255, 255, 255, 0.4), 0 0 1rem rgba(35, 135, 194, 0.3);
  transform: scaleX(1.1);
}

.chats-list::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #023a52 100%);
}

.empty-chats {
  padding: 4rem 2rem;
  color: var(--color-grey-dark-1);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
}

.chat-content {
  flex: 1;
  min-width: 0;
}

.chat-text {
  width: 18rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  color: var(--color-grey-dark-1);
}

.chat-text span {
  color: var(--color-grey-dark-1);
}

.dropdown-item:hover .chat-text {
  transform: translateX(0.3rem);
}

.chat-time {
  color: var(--color-grey-dark-1);
  align-self: flex-start;
  font-size: 1.1rem;
  font-weight: 500;
  background: rgba(35, 135, 194, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.dropdown-item:hover .chat-time {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0.3rem 1rem rgba(35, 135, 194, 0.3);
}

.menu-dropdown {
  width: 40rem;
  max-width: calc(100vw - 4rem);
  min-width: 32rem;
  padding: 0;
  border-radius: 2.4rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(35, 135, 194, 0.1);
  border: 1px solid rgba(35, 135, 194, 0.15);
  max-height: 70vh;
  min-height: 30rem;
  display: flex;
  flex-direction: column;
}

.menu-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
  z-index: 1;
}

.menu-dropdown .dropdown-menu-header {
  padding: 2rem 2.5rem 1.5rem;
}

.menu-dropdown .dropdown-list {
  padding: 1.5rem 2.5rem 2.5rem;
  max-height: calc(70vh - 8rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(35, 135, 194, 0.1);
  position: relative;
  z-index: 2;
  flex: 1;
}

.menu-dropdown .dropdown-list::-webkit-scrollbar {
  width: 12px;
}

.menu-dropdown .dropdown-list::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(35, 135, 194, 0.05) 0%, rgba(35, 135, 194, 0.08) 100%);
  border-radius: 12px;
  margin: 1rem 0.5rem;
  border: 1px solid rgba(35, 135, 194, 0.1);
}

.menu-dropdown .dropdown-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 12px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0.6rem rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.menu-dropdown .dropdown-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0.8rem rgba(255, 255, 255, 0.4), 0 0 1rem rgba(35, 135, 194, 0.3);
  transform: scaleX(1.1);
}

.menu-dropdown .dropdown-list::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #023a52 100%);
}

.dropdown-header-icon--float {
  position: absolute;
  top: 1rem;
  right: 4rem;
  transition: 0.3s ease-in-out;
  opacity: 0;
}

.account-type-wrapper {
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(255, 254, 249, 0.9) 0%, rgba(249, 246, 237, 0.9) 100%);
  box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(35, 135, 194, 0.1);
  border: 1px solid rgba(35, 135, 194, 0.12);
  overflow: hidden;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  list-style: none;
  padding: 0;
}

.account-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  border-radius: 1.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}

.account-type-item:hover {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.1) 0%, rgba(35, 135, 194, 0.15) 100%);
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.6rem rgba(35, 135, 194, 0.2);
  border-color: rgba(35, 135, 194, 0.2);
  text-decoration: none;
  color: inherit;
}

.account-type-item span {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-grey-dark-2);
  transition: color 0.3s ease;
  text-align: center;
}

.account-type-item:hover span {
  color: var(--color-primary);
}

.menu-dropdown .dropdown-item {
  font-size: 1.4rem;
  font-weight: 500;
  gap: 1.5rem;
  color: var(--color-grey-dark-2);
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.8rem;
  border-radius: 1.2rem;
  margin-bottom: 0.8rem;
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-dropdown .dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 0.4rem;
  height: 60%;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0.4rem 0.4rem 0;
}

.menu-dropdown .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.08) 0%, rgba(35, 135, 194, 0.12) 100%);
  transform: translateX(0.3rem);
  border-color: rgba(35, 135, 194, 0.15);
  box-shadow: 0 0.3rem 1rem rgba(35, 135, 194, 0.15);
}

.menu-dropdown .dropdown-item:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.menu-dropdown .dropdown-item:hover span {
  color: var(--color-primary);
  font-weight: 600;
}

.menu-dropdown .dropdown-item img:not(.dropdown-item-img):not(.arrow-1):not(.arrow-2) {
  width: 2.2rem;
  height: 2.2rem;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.menu-dropdown .dropdown-item:hover img:not(.dropdown-item-img):not(.arrow-1):not(.arrow-2) {
  filter: grayscale(0);
  transform: scale(1.1);
}

.menu-dropdown .dropdown-list {
  gap: 0;
}

.menu-dropdown .dropdown-list > li {
  margin-bottom: 0;
}

.dropdown-item:hover .dropdown-header-icon--float {
  opacity: 1;
}

.dropdown-img-box {
  position: relative;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.dropdown-img-box .dropdown-item-img {
  width: 6rem;
  height: 6rem;
  border: 3px solid #fff;
  box-shadow: 0 0.4rem 1.2rem rgba(35, 135, 194, 0.2);
  transition: all 0.3s ease;
}

.account-type .dropdown-item:hover .dropdown-item-img {
  transform: scale(1.05);
  box-shadow: 0 0.6rem 1.8rem rgba(35, 135, 194, 0.3);
}

.arrow-1 {
  position: absolute;
  top: -0.8rem;
  left: -0.8rem;
  width: 6.8rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.7;
  filter: drop-shadow(0 0.2rem 0.4rem rgba(35, 135, 194, 0.2));
}

.arrow-2 {
  position: absolute;
  bottom: -0.8rem;
  right: -0.8rem;
  width: 6.8rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.7;
  filter: drop-shadow(0 0.2rem 0.4rem rgba(35, 135, 194, 0.2));
}

.dropdown-item:hover .arrow-1 {
  transform: rotate(180deg) translate(3px, -35px);
  opacity: 1;
}

.dropdown-item:hover .arrow-2 {
  transform: rotate(180deg) translate(-3px, 35px);
  opacity: 1;
}

.dropdown-img-box .dropdown-item-img {
  width: 5rem;
  height: 5rem;
}

.language {
  position: relative;
}

.language .custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  left: auto;
  min-width: 20rem;
  max-width: 24rem;
  width: auto;
  padding: 0;
  border-radius: 2rem;
  max-height: 30rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(35, 135, 194, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(35, 135, 194, 0.1);
  border: 1px solid rgba(35, 135, 194, 0.15);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem) scale(0.95);
}

.language.open .custom-dropdown-menu {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language .custom-dropdown-menu .dropdown-menu-header {
  padding: 1.6rem 2rem;
  border-bottom: 1px solid rgba(35, 135, 194, 0.1);
  margin-bottom: 0.8rem;
}

.language .custom-dropdown-menu .heading-tertiary {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-primary);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--color-primary);
  background-clip: unset;
  padding: 0;
}

.language .custom-dropdown-menu .heading-tertiary::after {
  display: none;
}

html[dir="rtl"] .language .custom-dropdown-menu {
  right: auto;
  left: 0;
}

html[dir="ltr"] .language .custom-dropdown-menu {
  right: 0;
  left: auto;
}

.language .custom-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.language .custom-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(35, 135, 194, 0.05);
  border-radius: 8px;
  margin: 0.5rem;
}

.language .custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.language .custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
}

.language .dropdown-link {
  display: block;
  padding: 1.2rem 2rem;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0 0.8rem;
  border-radius: 1rem;
}

.language .dropdown-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0.3rem;
  height: 100%;
  background: var(--color-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.language .dropdown-link:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateX(0.5rem);
}

.language .dropdown-link:hover::before,
.language .dropdown-link.active::before {
  transform: scaleY(1);
}

.language .dropdown-link.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.navbar-nav {
  row-gap: 0;
  column-gap: 0.8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-nav .nav-item {
  margin: 0;
}

.navbar-toggler {
  font-size: 2rem;
  border: 2px solid var(--color-primary);
  border-radius: 1rem;
  padding: 0.8rem 1.2rem;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.3rem rgba(35, 135, 194, 0.2) !important;
}

.notifications {
  width: 40rem;
  max-width: calc(100vw - 4rem);
  min-width: 32rem;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(35, 135, 194, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(35, 135, 194, 0.15);
  border-radius: 2.4rem;
  max-height: 70vh;
  min-height: 30rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.notifications .tab-pane {
  padding: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.notifications::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
  z-index: 1;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.notifications .notifications-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(35, 135, 194, 0.1);
}

.notifications .notifications-content::-webkit-scrollbar,
.notifications::-webkit-scrollbar {
  width: 12px;
}

.notifications .notifications-content::-webkit-scrollbar-track,
.notifications::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(35, 135, 194, 0.05) 0%, rgba(35, 135, 194, 0.08) 100%);
  border-radius: 12px;
  margin: 1.5rem 0.5rem;
  border: 1px solid rgba(35, 135, 194, 0.1);
}

.notifications .notifications-content::-webkit-scrollbar-thumb,
.notifications::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 12px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0.6rem rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.notifications .notifications-content::-webkit-scrollbar-thumb:hover,
.notifications::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0.8rem rgba(255, 255, 255, 0.4), 0 0 1rem rgba(35, 135, 194, 0.3);
  transform: scaleX(1.1);
}

.notifications .notifications-content::-webkit-scrollbar-thumb:active,
.notifications::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, #023a52 100%);
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.03);
}

.notifications .tab-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) rgba(35, 135, 194, 0.1);
}

.notifications .tab-content::-webkit-scrollbar {
  width: 12px;
}

.notifications .tab-content::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(35, 135, 194, 0.05) 0%, rgba(35, 135, 194, 0.08) 100%);
  border-radius: 12px;
  margin: 1.5rem 0.5rem;
  border: 1px solid rgba(35, 135, 194, 0.1);
}

.notifications .tab-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 12px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0.6rem rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.notifications .tab-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0.8rem rgba(255, 255, 255, 0.4), 0 0 1rem rgba(35, 135, 194, 0.3);
  transform: scaleX(1.1);
}

.notifications-title {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.chat-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background-color: var(--color-grey-light-4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-icons:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.1);
}

.notifications .nav-tabs {
  margin: 0;
  padding: 1.2rem 2.5rem 0;
  border: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.8) 100%);
  position: sticky;
  top: 7.5rem;
  z-index: 9;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35, 135, 194, 0.1);
}

.notifications .nav-tabs .nav-link {
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 1.2rem;
  color: var(--color-grey-dark-1);
  padding: 0.8rem 2rem !important;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin-right: 0.8rem;
  background: transparent;
}

.notifications .nav-tabs .nav-link:hover {
  background: rgba(35, 135, 194, 0.08);
  color: var(--color-primary);
  transform: translateY(-0.1rem);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.15) 0%, rgba(35, 135, 194, 0.2) 100%);
  color: var(--color-primary);
  box-shadow: 0 0.2rem 0.8rem rgba(35, 135, 194, 0.2);
  font-weight: 700;
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 0.2rem;
  background: var(--color-primary);
  border-radius: 2rem;
}

.notification-box {
  margin-bottom: 2.4rem;
  padding: 0 2.5rem;
}

.notification-box:first-child {
  padding-top: 1.5rem;
}

.notification-box .notification-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0;
  color: var(--color-grey-dark-2);
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 1.2rem;
}

.notification-box .notification-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 1.4rem;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 2rem;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  margin: 0 2.5rem 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.4rem;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
  border: 1px solid rgba(35, 135, 194, 0.1);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.match-avatar {
  display: flex;
  align-items: flex-end;
  position: relative;
}

.match-avatar::before {
  content: '❤️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
}

.notification-item:hover .match-avatar::before {
  opacity: 1;
  animation: heartBeat 0.8s ease-in-out;
}

@keyframes heartBeat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  25% {
    transform: translate(-50%, -50%) scale(1.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
  }
  75% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.notification-imgs {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-imgs img,
.noti-avatar img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.1), 0 0 0 0.2rem rgba(35, 135, 194, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-item:hover .notification-imgs img,
.notification-item:hover .noti-avatar img {
  transform: scale(1.08);
  box-shadow: 0 0.4rem 1.2rem rgba(35, 135, 194, 0.4), 0 0 0 0.3rem rgba(35, 135, 194, 0.3);
}

.match-avatar img:nth-child(2) {
  width: 6rem;
  height: 6rem;
  margin-left: -4.8rem;
  border: 3px solid #fff;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.notification-item:hover .match-avatar img {
  transform: scale(1.05);
}

.notification-item:hover .match-avatar img:nth-child(1) {
  transform: translateX(-0.5rem) scale(1.05);
}

.notification-item:hover .match-avatar img:nth-child(2) {
  transform: translateX(0.5rem) scale(1.05);
}

.notification-text {
  font-size: 1.3rem;
  font-weight: 400;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.notification-text p {
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 0;
  color: var(--color-grey-dark-2);
  transition: color 0.3s ease;
}

.notification-item:hover .notification-text p {
  color: var(--color-primary-dark);
}

.notification-circle {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 0 0.8rem rgba(35, 135, 194, 0.6), 0 0 1.6rem rgba(35, 135, 194, 0.3);
  animation: pulse-notification 2s ease-in-out infinite;
  position: absolute;
  bottom: 0.2rem;
  right: 0.2rem;
  border: 2px solid #fff;
  z-index: 2;
}

.notification-circle::before {
  content: '';
  position: absolute;
  inset: -0.3rem;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.3;
  animation: ripple-notification 2s ease-in-out infinite;
}

@keyframes pulse-notification {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@keyframes ripple-notification {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.notification-text span {
  color: var(--color-grey-dark-1);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification-text span::before {
  content: '•';
  color: var(--color-primary);
  font-size: 0.8rem;
}

.someone-added {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.12) 0%, rgba(243, 112, 74, 0.12) 100%);
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0.2rem 0.8rem rgba(35, 135, 194, 0.15), inset 0 0.1rem 0.3rem rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2.5px solid rgba(35, 135, 194, 0.25);
}

.someone-added svg,
.someone-added img {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--color-primary);
  filter: drop-shadow(0 0.2rem 0.4rem rgba(35, 135, 194, 0.3));
}

.notification-item:hover .someone-added {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0.6rem 1.6rem rgba(35, 135, 194, 0.4), inset 0 0.1rem 0.3rem rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.2) 0%, rgba(243, 112, 74, 0.2) 100%);
  border-color: var(--color-primary);
}

.confirm-request {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.button {
  font-size: 1.4rem;
  font-weight: 500;
  padding: 0.8rem 3rem;
  border-radius: 2rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.confirm-btn {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.confirm-btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1.2rem rgba(35, 135, 194, 0.3);
}

.delete-btn {
  background-color: #d9d9d7;
  color: var(--color-grey-dark-2);
}

.delete-btn:hover {
  background-color: #c5c5c3;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
}

.notifications .option-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 7rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, var(--color-grey-light-4) 100%);
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 0;
  cursor: pointer;
  border: 2px solid rgba(35, 135, 194, 0.1);
}

.notifications .option-icon:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(35, 135, 194, 0.15) 100%);
  transform: translateY(-50%) rotate(90deg) scale(1.1);
  border-color: var(--color-primary);
}

.notifications .option-icon svg,
.notifications .option-icon i {
  color: var(--color-grey-dark-2);
  transition: color 0.3s ease;
}

.notifications .option-icon:hover svg,
.notifications .option-icon:hover i {
  color: var(--color-primary);
}

.notification-item:hover {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.1) 0%, rgba(35, 135, 194, 0.15) 100%);
  transform: translateX(0.3rem) translateY(-0.1rem);
  box-shadow: 0 0.6rem 1.6rem rgba(35, 135, 194, 0.2);
  border-color: rgba(35, 135, 194, 0.3);
}

.notification-item.unread {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.1) 0%, rgba(35, 135, 194, 0.15) 100%);
  border-left: 0.5rem solid var(--color-primary);
  padding-left: 1.5rem;
  box-shadow: 0 0.3rem 1rem rgba(35, 135, 194, 0.2), inset 0.5rem 0 0 rgba(35, 135, 194, 0.1);
  position: relative;
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.5rem;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 1.4rem 0 0 1.4rem;
  box-shadow: 0 0 0.8rem rgba(35, 135, 194, 0.4);
}

.notification-item.unread::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.3rem;
  height: 0.3rem;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.3);
  }
}

.notification-item:hover .option-icon {
  opacity: 1;
}

@media only screen and (max-width: 30em) {
  .notification-item {
    padding: 1rem;
  }
  .notifications-header,
  .nav-tabs,
  .notification-title {
    padding: 0 1rem;
  }
}

/**************************/
/* Footer */
/**************************/

.footer {
  padding: 6rem 0 0;
  font-size: 1.6rem;
  font-weight: 500;
  background: linear-gradient(135deg,
    rgba(35, 135, 194, 0.05) 0%,
    rgba(243, 112, 74, 0.03) 100%),
    linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-top: 0.1rem solid rgba(35, 135, 194, 0.1);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.3rem;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  column-gap: 6rem;
  row-gap: 4rem;
  margin-bottom: 3rem;
}

.logo-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo .logo {
  height: 3.5rem;
  width: auto;
}

.footer-description {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  color: #707070;
  margin: 0 0 2.4rem;
  max-width: 35rem;
  font-family: "Tajawal", sans-serif;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0;
  margin: 0 0 2.4rem;
  list-style: none;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 0.15rem solid rgba(35, 135, 194, 0.15);
  color: #707070;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-link svg {
  width: 2rem;
  height: 2rem;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
  transform: translateY(-0.3rem) scale(1.1);
  border-color: transparent;
  box-shadow: 0 0.8rem 2rem rgba(35, 135, 194, 0.25);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover svg {
  color: #ffffff;
  transform: rotate(10deg) scale(1.1);
}

.social-link-instagram:hover {
  box-shadow: 0 0.8rem 2rem rgba(225, 48, 108, 0.3);
}

.social-link-facebook:hover {
  box-shadow: 0 0.8rem 2rem rgba(24, 119, 242, 0.3);
}

.social-link-twitter:hover {
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.3);
}

.social-link-youtube:hover {
  box-shadow: 0 0.8rem 2rem rgba(255, 0, 0, 0.3);
}

.social-link-whatsapp:hover {
  box-shadow: 0 0.8rem 2rem rgba(37, 211, 102, 0.3);
}

.social-link-tiktok:hover {
  box-shadow: 0 0.8rem 2rem rgba(0, 242, 234, 0.3);
}

.site.footer-link {
  font-size: 1.4rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site.footer-link:hover {
  color: var(--color-secondary);
  gap: 0.8rem;
}

.nav-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 2.4rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 1rem;
  font-family: "Tajawal", sans-serif;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4rem;
  height: 0.3rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 0.2rem;
}

html[dir="rtl"] .footer-heading::after {
  left: auto;
  right: 0;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 0;
  margin: 0;
}

.footer-link {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
  color: #707070;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 0;
  font-family: "Tajawal", sans-serif;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  width: 0;
  height: 0.2rem;
  background: var(--color-primary);
  transition: width 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
}

html[dir="rtl"] .footer-link::before {
  left: auto;
  right: -1.2rem;
}

.footer-link:hover {
  color: var(--color-primary);
  padding-left: 0.8rem;
  font-weight: 500;
}

html[dir="rtl"] .footer-link:hover {
  padding-left: 0;
  padding-right: 0.8rem;
}

.footer-link:hover::before {
  width: 0.8rem;
}

.contact-item {
  list-style: none;
  margin: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: #707070;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.contact-link:hover {
  color: var(--color-primary);
  transform: translateX(0.5rem);
}

html[dir="rtl"] .contact-link:hover {
  transform: translateX(-0.5rem);
}

.location-link {
  cursor: default;
}

.location-link:hover {
  transform: none;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.contact-link:hover .contact-icon {
  color: var(--color-secondary);
  transform: scale(1.1);
}

.contact-link span {
  font-size: 1.5rem;
  font-weight: 400;
  font-family: "Tajawal", sans-serif;
}

.location {
  font-size: 1.5rem;
  font-weight: 400;
  color: #707070;
  font-family: "Tajawal", sans-serif;
}

.copyright {
  border-top: 0.1rem solid rgba(35, 135, 194, 0.15);
  padding: 2.4rem 0;
  text-align: center;
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.copyright p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: #707070;
  font-family: "Tajawal", sans-serif;
}

/* Footer Responsive Design */
@media only screen and (max-width: 75em) {
  .footer {
    padding: 5rem 0 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    row-gap: 3.5rem;
  }

  .logo-col {
    grid-column: 1 / -1;
  }
}

@media only screen and (max-width: 62em) {
  .footer {
    padding: 4rem 0 0;
  }

  .footer-grid {
    column-gap: 3rem;
    row-gap: 3rem;
  }

  .footer-description {
    font-size: 1.4rem;
    max-width: 100%;
  }

  .social-link {
    width: 4rem;
    height: 4rem;
  }

  .social-link svg {
    width: 1.8rem;
    height: 1.8rem;
  }

  .footer-heading {
    font-size: 1.7rem;
    margin-bottom: 2rem;
  }

  .footer-link {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 48em) {
  .footer-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 3rem;
  }

  .logo-col {
    grid-column: 1;
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 1.5rem;
  }

  .footer-description {
    text-align: center;
    margin-bottom: 2rem;
  }

  .social-links {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .nav-col {
    text-align: center;
    align-items: center;
  }

  .footer-heading {
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  html[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
  }

  .footer-nav {
    align-items: center;
  }

  .footer-link {
    justify-content: center;
  }

  .footer-link::before {
    display: none;
  }

  .contact-link {
    justify-content: center;
  }

  .copyright {
    margin-top: 3rem;
    padding: 2rem 1rem;
  }

  .copyright p {
    font-size: 1.3rem;
  }
}

@media only screen and (max-width: 31.25rem) {
  .footer {
    padding: 3rem 0 0;
  }

  .footer-grid {
    row-gap: 2.5rem;
  }

  .footer-description {
    font-size: 1.3rem;
  }

  .social-link {
    width: 3.6rem;
    height: 3.6rem;
  }

  .social-link svg {
    width: 1.6rem;
    height: 1.6rem;
  }

  .footer-heading {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .footer-nav {
    gap: 1.2rem;
  }

  .footer-link,
  .contact-link span,
  .location {
    font-size: 1.3rem;
  }

  .copyright {
    margin-top: 2.5rem;
    padding: 1.8rem 1rem;
  }

  .copyright p {
    font-size: 1.2rem;
  }
}

@media only screen and (max-width: 61.94em) {
  .custom-dropdown-menu {
    right: auto !important;
    left: auto !important;
    position: fixed !important;
    top: 9rem !important;
    width: calc(100vw - 3rem) !important;
    max-width: calc(100vw - 3rem) !important;
    min-width: auto !important;
    max-height: 70vh !important;
    min-height: 30rem !important;
  }

  .notifications,
  .chats-dropdown,
  .menu-dropdown {
    width: calc(100vw - 3rem) !important;
    max-width: calc(100vw - 3rem) !important;
    min-width: auto !important;
  }

  .navbar-collapse {
    padding: 2rem;
    padding-bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    border-radius: 1.6rem;
    margin-top: 1rem;
    box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(35, 135, 194, 0.1);
  }

  .user-nav {
    padding: 2rem 0.8rem 1.5rem;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 2px solid rgba(35, 135, 194, 0.1);
    margin-top: 1.5rem;
  }

  .user-nav > a,
  .user-nav .dropdown-btn {
    width: 4rem;
    height: 4rem;
  }

  .header {
    width: 96%;
    padding: 0 1.5rem;
  }

  .header-img {
    height: 5rem;
  }

  .nav-link {
    padding: 0.8rem 1.5rem !important;
    font-size: 1.4rem;
    border-radius: 1rem;
  }

  .navbar-nav {
    column-gap: 0.5rem;
    justify-content: center;
    width: 100%;
  }

  .icon-badge {
    top: 0.4rem;
    right: 0.4rem;
    min-width: 1.6rem;
    height: 1.6rem;
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 35em) {
  .custom-dropdown {
    position: static;
  }

  .custom-dropdown-menu {
    left: 2%;
    right: 2%;
    top: 100%;
    width: 96%;
    max-width: 96%;
    min-width: auto;
    padding: 0;
    border-radius: 2.4rem;
    max-height: 70vh;
    min-height: 30rem;
  }

  .notifications,
  .chats-dropdown,
  .menu-dropdown {
    width: 96%;
    max-width: 96%;
    min-width: auto;
    max-height: 70vh;
    min-height: 30rem;
  }

  .header {
    width: 98%;
    padding: 0 1rem;
    border-radius: 0 0 1.6rem 1.6rem;
  }

  .user-nav {
    gap: 0.6rem;
  }

  .user-nav > a,
  .user-nav .dropdown-btn {
    width: 3.6rem;
    height: 3.6rem;
  }

  .user-icon {
    width: 2rem;
    height: 2rem;
  }

  .user {
    padding: 0.2rem;
  }

  .user img {
    width: 3.2rem;
    height: 3.2rem;
    border: 2px solid #fff;
  }

  .menu-dropdown .dropdown-menu-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .menu-dropdown .dropdown-list {
    padding: 1.5rem;
    max-height: 50vh;
  }

  .notifications-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .notifications .nav-tabs {
    padding: 1.5rem 1.5rem 0;
  }

  .notification-box {
    padding: 0 1.5rem;
  }

  .notification-item {
    padding: 1.4rem 1.5rem;
  }

  .chats-dropdown .dropdown-menu-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .chats-list .dropdown-item {
    padding: 1.2rem 1.5rem;
    margin: 0 0.8rem 0.6rem;
  }

  .divider {
    height: 3rem;
    margin: 0 0.3rem;
  }

  .language .dropdown-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.4rem;
    min-width: 7rem;
    height: 4rem;
  }

  .user-nav {
    gap: 0.8rem;
  }

  .icon-badge {
    top: 0.3rem;
    right: 0.3rem;
    min-width: 1.4rem;
    height: 1.4rem;
    font-size: 0.8rem;
    border: 1px solid #fff;
  }

  .dropdown-item {
    padding: 1rem 1.2rem;
    gap: 1.2rem;
  }

  .dropdown-item img:not(.dropdown-item-img):not(.arrow-1):not(.arrow-2) {
    width: 2rem;
    height: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.header {
  overflow: visible !important;
}

.custom-dropdown-menu {
  position: fixed !important;
  top: 8.5rem !important;
  z-index: 5000 !important;
}

html[dir="ltr"] .custom-dropdown-menu {
  right: 2rem !important;
  left: auto !important;
}

html[dir="rtl"] .custom-dropdown-menu {
  left: 2rem !important;
  right: auto !important;
}

/* Responsive positioning for mobile */
@media only screen and (max-width: 61.94em) {
  .custom-dropdown-menu {
    top: 9rem !important;
  }

  html[dir="ltr"] .custom-dropdown-menu {
    right: 1rem !important;
  }

  html[dir="rtl"] .custom-dropdown-menu {
    left: 1rem !important;
  }
}

main,
.section-hero,
.container,
.section-popular {
  overflow: visible !important;
}
/* Badge for unread messages in chats */
.chats-list .badge {
  position: absolute;
  top: 1.2rem;
  right: 2.8rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.3rem 1rem rgba(35, 135, 194, 0.4);
  border: 2px solid #fff;
  z-index: 1;
  animation: pulse-badge 2s ease-in-out infinite;
}

/**************************/
/* PAGINATION */
/**************************/

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 4rem 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.pagination .page-item {
  display: inline-flex;
  margin: 0;
}

.pagination .page-link {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.5rem;
  border-radius: 1.2rem;
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(35, 135, 194, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.pagination .page-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(35, 135, 194, 0.1) 0%,
      rgba(35, 135, 194, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 1.2rem;
}

.pagination .page-link:hover {
  background: rgba(35, 135, 194, 0.1);
  color: var(--color-primary-dark);
  transform: translateY(-0.2rem) scale(1.05);
  box-shadow: 0 0.4rem 1.2rem rgba(35, 135, 194, 0.2),
    0 0 0 1px rgba(35, 135, 194, 0.2);
}

.pagination .page-link:hover::before {
  opacity: 1;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg,
      var(--color-primary) 0%,
      var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 0.4rem 1.2rem rgba(35, 135, 194, 0.4),
    0 0 0 0.2rem rgba(255, 255, 255, 0.3);
  transform: translateY(-0.2rem) scale(1.05);
  border-color: transparent;
}

.pagination .page-item.active .page-link::before {
  opacity: 0;
}

.pagination .page-item.disabled .page-link {
  color: var(--color-grey-light-5);
  background: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.05);
}

.pagination .page-item.disabled .page-link:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.pagination .page-item.disabled .page-link::before {
  display: none;
}

/* Pagination arrows */
.pagination .page-link[aria-label*="Previous"],
.pagination .page-link[aria-label*="previous"],
.pagination .page-link[aria-label*="السابق"],
.pagination .page-link[aria-label*="التالي"],
.pagination .page-link[aria-label*="Next"] {
  font-size: 1.8rem;
  font-weight: 700;
}

/* Pagination info text */
.pagination-info,
.pagination-summary {
  font-size: 1.5rem;
  color: var(--color-grey-dark-2);
  font-weight: 500;
  margin: 0 2rem;
  white-space: nowrap;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 3rem 0;
}

/* Responsive Pagination */
@media only screen and (max-width: 62em) {
  .pagination {
    gap: 0.6rem;
    margin: 3rem 0;
  }

  .pagination .page-link {
    width: 4rem;
    height: 4rem;
    font-size: 1.4rem;
  }

  .pagination-info,
  .pagination-summary {
    font-size: 1.4rem;
    margin: 0 1.5rem;
  }
}

@media only screen and (max-width: 48em) {
  .pagination {
    gap: 0.5rem;
    margin: 2.5rem 0;
  }

  .pagination .page-link {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 1.3rem;
  }

  .pagination-info,
  .pagination-summary {
    font-size: 1.3rem;
    margin: 0 1rem;
  }

  .pagination-wrapper {
    flex-direction: column;
    gap: 1.2rem;
  }
}

@media only screen and (max-width: 31.25rem) {
  .pagination {
    gap: 0.4rem;
  }

  .pagination .page-link {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.2rem;
  }

  .pagination-info,
  .pagination-summary {
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem 0;
  }
}

/* ========================================
   MODERN MOBILE NAVBAR - RESPONSIVE UI
   ======================================== */

@media only screen and (max-width: 991px) {
  /* Mobile Navbar Container */
  .header {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    padding: 1rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Logo Section */
  .navbar-brand {
    padding: 0.6rem 0 !important;
    z-index: 1001;
  }

  .header-img {
    height: 4.5rem !important;
    transition: all 0.3s ease;
  }

  /* Mobile Toggle Button */
  .navbar-toggler {
    border: none !important;
    padding: 0.5rem !important;
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  }

  .navbar-toggler:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  }

  .navbar-toggler-icon {
    background-image: none !important;
    width: 2.4rem;
    height: 2px;
    background: #fff;
    display: block;
    position: relative;
    transition: all 0.3s ease;
  }

  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
  }

  .navbar-toggler-icon::before {
    top: -0.7rem;
  }

  .navbar-toggler-icon::after {
    bottom: -0.7rem;
  }

  /* Animated Toggle Icon */
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
  }

  /* Full Screen Mobile Menu */
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #8b5cf6 100%) !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8rem 2rem 4rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    box-shadow: none !important;
    border: none !important;
  }

  .navbar-collapse.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
  }

  .navbar-collapse.collapsing {
    opacity: 0.5;
    height: 100vh !important;
    height: 100dvh !important;
  }

  /* Navigation Links */
  .navbar-nav {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 400px !important;
    gap: 1rem !important;
    margin: 0 auto 2rem !important;
    padding: 0 !important;
  }

  .nav-item {
    width: 100% !important;
    text-align: center !important;
    animation: slideInUp 0.6s ease backwards;
  }

  .nav-item:nth-child(1) { animation-delay: 0.1s; }
  .nav-item:nth-child(2) { animation-delay: 0.2s; }
  .nav-item:nth-child(3) { animation-delay: 0.3s; }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    display: block !important;
    padding: 1.6rem 2.4rem !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    opacity: 1;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  /* User Navigation Section */
  .user-nav {
    width: 100% !important;
    max-width: 400px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    padding: 2rem 0 !important;
    margin: 0 auto !important;
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-bottom: none !important;
    animation: fadeInScale 0.6s ease 0.4s backwards;
  }

  @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .user-nav > a,
  .user-nav .dropdown-btn,
  .user-nav .custom-dropdown {
    width: 5.6rem !important;
    height: 5.6rem !important;
    flex-shrink: 0;
  }

  .user-nav .dropdown-btn,
  .user-nav > a.nav-icon-link {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    cursor: pointer !important;
  }

  .user-nav .dropdown-btn:hover,
  .user-nav > a.nav-icon-link:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .user-icon {
    width: 2.6rem !important;
    height: 2.6rem !important;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }

  /* Language Button */
  .language .dropdown-btn {
    padding: 1rem 1.6rem !important;
    width: auto !important;
    min-width: 9rem !important;
    height: 5.6rem !important;
    gap: 0.8rem;
    border-radius: 2.4rem !important;
  }

  .language-icon {
    width: 2.2rem !important;
    height: 2.2rem !important;
    color: #ffffff !important;
  }

  .language-text {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
  }

  .language-arrow {
    width: 1.8rem !important;
    height: 1.8rem !important;
    color: #ffffff !important;
  }

  /* User Profile Image */
  .user {
    width: 5.6rem !important;
    height: 5.6rem !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .user:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .user img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
  }

  /* Badge Styling */
  .icon-badge {
    position: absolute !important;
    top: 0.2rem !important;
    right: 0.2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
    padding: 0.2rem 0.5rem !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5) !important;
    animation: pulse-badge 2s infinite;
  }

  @keyframes pulse-badge {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
  }

  /* Divider */
  .divider {
    display: none !important;
  }

  /* Dropdown Menus - Full Width */
  .custom-dropdown-menu {
    position: fixed !important;
    top: 6rem !important;
    left: 1rem !important;
    right: 1rem !important;
    width: calc(100% - 2rem) !important;
    max-width: none !important;
    max-height: calc(100vh - 8rem) !important;
    max-height: calc(100dvh - 8rem) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    overflow-y: auto !important;
    z-index: 1002 !important;
  }

  .custom-dropdown.open .custom-dropdown-menu {
    animation: slideInDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes slideInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Overlay for Dropdown */
  .custom-dropdown.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Dropdown Headers */
  .dropdown-menu-header {
    padding: 2rem !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    border-radius: 20px 20px 0 0;
    margin: 0 !important;
  }

  .dropdown-menu-header .heading-tertiary {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  /* Dropdown Items */
  .dropdown-list {
    padding: 1.5rem !important;
  }

  .dropdown-item {
    padding: 1.4rem 1.6rem !important;
    margin-bottom: 0.8rem !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    transition: all 0.2s ease !important;
  }

  .dropdown-item:hover {
    background: #e9ecef !important;
    transform: translateX(5px);
  }

  /* Close Button for Dropdowns */
  .dropdown-menu-header::after {
    content: '✕';
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3.6rem;
    height: 3.6rem;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .dropdown-menu-header::after:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
  }

  /* Smooth Scrolling */
  .navbar-collapse,
  .custom-dropdown-menu {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }

  .navbar-collapse::-webkit-scrollbar,
  .custom-dropdown-menu::-webkit-scrollbar {
    width: 6px;
  }

  .navbar-collapse::-webkit-scrollbar-track,
  .custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
  }

  .navbar-collapse::-webkit-scrollbar-thumb,
  .custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  /* Prevent Body Scroll When Menu Open */
  body.navbar-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
}

/* Small Mobile Devices */
@media only screen and (max-width: 576px) {
  .header {
    padding: 0.8rem 1rem !important;
  }

  .header-img {
    height: 4rem !important;
  }

  .navbar-toggler {
    width: 3.6rem;
    height: 3.6rem;
  }

  .navbar-collapse {
    padding: 7rem 1.5rem 3rem !important;
  }

  .navbar-nav {
    max-width: 100% !important;
  }

  .nav-link {
    padding: 1.4rem 2rem !important;
    font-size: 1.8rem !important;
  }

  .user-nav {
    max-width: 100% !important;
    gap: 1rem !important;
  }

  .user-nav > a,
  .user-nav .dropdown-btn,
  .user-nav .custom-dropdown,
  .user {
    width: 5rem !important;
    height: 5rem !important;
  }

  .user-icon {
    width: 2.4rem !important;
    height: 2.4rem !important;
  }

  .language .dropdown-btn {
    min-width: 8rem !important;
    height: 5rem !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 1.4rem !important;
  }

  .language .language-text {
    font-size: 1.4rem !important;
  }

  .language .language-icon {
    width: 1.6rem !important;
    height: 1.6rem !important;
  }

  .custom-dropdown-menu {
    top: 5.5rem !important;
  }
}
