.ad-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 280px;
  z-index: 1000;
}

.ad-card {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: cardAppear 0.5s forwards;
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ad-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8);
}

.ad-card.hidden {
  display: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.1);
  color: #636e72;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 14px;
  backdrop-filter: blur(4px);
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.ad-content {
  padding: 20px;
}

.ad-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2d3436;
  display: flex;
  align-items: center;
}

.ad-title i {
  margin-right: 8px;
  color: #6c5ce7;
}

.ad-description {
  font-size: 13px;
  color: #636e72;
  margin-bottom: 18px;
  line-height: 1.5;
}

.ad-cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(to right, #6c5ce7, #a29bfe);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.ad-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
}

.ad-cta i {
  margin-left: 5px;
  font-size: 12px;
}

.ad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 11px;
  color: #b2bec3;
}

.ad-badge {
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.ad-timer {
  display: flex;
  align-items: center;
}

.ad-timer i {
  margin-right: 4px;
}

@media (max-width: 768px) {
  .ad-container {
    width: 260px;
    right: 15px;
    bottom: 15px;
  }

  .content {
    padding: 20px;
    margin-bottom: 30px;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .ad-container {
    width: calc(100% - 30px);
    right: 15px;
  }
}
