.notification-item::after{
    content: none;
}
.notification-item.unread::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #2387c2;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
}

.unread-count{
    background: #f84c4c;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    min-width: 19px;
    border-radius: 8px;
    color: white;
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-40%, 40%);
    padding: 0px 4px;
    border: 1px solid #ffffff
}

.my-favorites-img{
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    background-repeat: no-repeat;
    width: 19rem;
    background-size: cover;
    height: 20rem;
    border-radius: 2rem;
}


.section-recommmend{
    overflow: hidden;
}

.account-type .dropdown-item{
    justify-content: start;
}

.add-favorite-btn{
    background-color: transparent;
    border: none;
}

.clear-search-btn{
    border: none;
}

.favorite-heart-my-ad{
    font-size: 22px !important;
    color: #ed3d3d !important;
}

.fav-dropdown{
    position: absolute;
    right: 8rem;
    top: 50%;
    transform: translateY(-50%);
}
.fav-dropdown .option-icon{
    right: 0;
}
html, body {
  overflow-x: hidden !important;
}

/* الزر في الوضع LTR */
html[dir="ltr"] .add-add {
  right: -11.5rem !important;
  left: auto !important;
  border-radius: 2.2rem 0 0 2.2rem !important;
  transform: translateY(-50%) !important;
}
html[dir="ltr"] .add-add:hover {
  right: 0 !important;
  transform: translateY(-50%) !important;
}

html[dir="rtl"] .add-add {
  left: -11.5rem !important;
  right: auto !important;
  border-radius: 0 2.2rem 2.2rem 0 !important;
  transform: translateY(-50%) !important;
}
html[dir="rtl"] .add-add:hover {
  left: 0 !important;
  transform: translateY(-50%) !important;
}

/* Page Styles */
.page-section {
  padding: 8rem 2rem 4rem;
  min-height: 60vh;
  background: var(--color-grey-light-4);
}

.page-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-card h1 {
  color: var(--color-text-dark);
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.page-content {
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1.6rem;
}

.page-content p {
  margin-bottom: var(--spacing-md);
}

.page-content br {
  display: block;
  margin-bottom: var(--spacing-sm);
}

.custom-dropdown.open .custom-dropdown-menu{
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
}

/* ================================================ */
/* MODERN UI ENHANCEMENTS & UTILITY CLASSES */
/* ================================================ */

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0.8rem 3.2rem rgba(0, 0, 0, 0.1);
}

.glass-effect-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #2387c2 0%, #f3704a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-primary {
  background: linear-gradient(135deg, #2387c2 0%, #035781 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-secondary {
  background: linear-gradient(135deg, #f3704a 0%, #e85a34 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth Reveal Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(3rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Hover Effects */
.hover-lift {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-0.8rem) scale(1.02);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.12);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  filter: drop-shadow(0 0 2rem rgba(35, 135, 194, 0.5));
}

.hover-scale {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Gradient Borders */
.gradient-border {
  position: relative;
  border-radius: 2rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.2rem;
  background: linear-gradient(135deg, #2387c2 0%, #f3704a 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* Card Improvements */
.modern-card {
  background: #ffffff;
  border-radius: 2.4rem;
  padding: 2.4rem;
  box-shadow:
    0 0.8rem 2.4rem rgba(0, 0, 0, 0.08),
    0 0.4rem 1.2rem rgba(0, 0, 0, 0.05),
    inset 0 0.1rem 0 0 rgba(255, 255, 255, 0.8);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-card:hover {
  transform: translateY(-0.8rem);
  box-shadow:
    0 1.6rem 4rem rgba(35, 135, 194, 0.15),
    0 0.8rem 2rem rgba(0, 0, 0, 0.08),
    inset 0 0.2rem 0 0 rgba(255, 255, 255, 1);
}

/* Badge Styles */
.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border-radius: 5rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-primary {
  background: linear-gradient(135deg, rgba(35, 135, 194, 0.15) 0%, rgba(35, 135, 194, 0.25) 100%);
  color: #035781;
  border: 1px solid rgba(35, 135, 194, 0.3);
}

.badge-secondary {
  background: linear-gradient(135deg, rgba(243, 112, 74, 0.15) 0%, rgba(243, 112, 74, 0.25) 100%);
  color: #e85a34;
  border: 1px solid rgba(243, 112, 74, 0.3);
}

.badge-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Loading Spinner */
.spinner {
  width: 4rem;
  height: 4rem;
  border: 0.4rem solid rgba(35, 135, 194, 0.1);
  border-top-color: #2387c2;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-sm {
  width: 2rem;
  height: 2rem;
  border-width: 0.2rem;
}

.spinner-lg {
  width: 6rem;
  height: 6rem;
  border-width: 0.6rem;
}

/* Pulse Effect */
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Shimmer Loading Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Tooltip */
.tooltip-modern {
  position: relative;
}

.tooltip-modern::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  padding: 0.8rem 1.4rem;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip-modern::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  border: 0.6rem solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.tooltip-modern:hover::before,
.tooltip-modern:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(35, 135, 194, 0.08) 0%,
    rgba(35, 135, 194, 0.15) 50%,
    rgba(35, 135, 194, 0.08) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.8rem;
}

.skeleton-text {
  height: 1.6rem;
  margin-bottom: 1rem;
}

.skeleton-title {
  height: 2.4rem;
  margin-bottom: 1.6rem;
  width: 60%;
}

.skeleton-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
}

/* Improved Focus States */
*:focus-visible {
  outline: 3px solid rgba(35, 135, 194, 0.5);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(35, 135, 194, 0.5);
  outline-offset: 3px;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
  background: rgba(35, 135, 194, 0.3);
  color: #035781;
}

::-moz-selection {
  background: rgba(35, 135, 194, 0.3);
  color: #035781;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
