.sticky-navbar-ad {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 9999;
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}


.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #fff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  height: 90px;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.sticky-bottom-fallback {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #fff;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  height: 90px;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.sticky-bottom-ad.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sticky-bottom-fallback.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  #sticky-bottom-ad {
    height: 100px;
  }
  
}

@media (max-width: 768px) {
  #sticky-bottom-fallback {
    height: 100px;
  }
  
}

.sticky-bottom-ad.fade-in {
  opacity: 1;
  visibility: visible;
}

.sticky-bottom-fallback.fade-in {
  opacity: 1;
  visibility: visible;
}

.fade-in {
  display: block !important;
  animation: fadeIn 0.5s ease;
}

.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

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

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; display: none; }
}

.close-sticky-ad {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 20px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.close-sticky-ad:hover {
  background: rgba(0, 0, 0, 0.05);
}