/* ===== DEMAT BUTTON CLEAN UI ===== */

.demat {
  position: relative;
  display: inline-block;
  padding: 2px 5px;
  font-size: 0.5rem;
  font-weight: 600;
  color: #fff !important;
background: linear-gradient(90deg, #b0cfb0 0%, #05d64770 50%, #74c011 100%);
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: visible;
}

/* Hover */
.demat:hover {
  /* transform: translateY(1px); */
  box-shadow: 0 6px 20px rgba(0, 128, 0, 0.4);
}

/* ===== BADGE ===== */
.demat-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4444;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* ===== TOOLTIP ===== */
.demat-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #007f00;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transition: 0.3s;
}

/* Arrow */
.demat-tooltip::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #007f00;
}

/* Show tooltip */
.demat.show-tooltip .demat-tooltip {
  opacity: 1;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 576px) {
  .demat {
    
     padding: 2px 5px;
  font-size: 0.2rem;
  }

  .demat-tooltip {
    font-size: 11px;
    max-width: 140px;
    white-space: normal;
    text-align: center;
    bottom: -45px;
  }
}

@media (min-width: 300px) and (max-width: 768px) {

.demat {
    
     padding: 2px 5px;
  font-size: 0.2rem;
  }

  .demat-tooltip {
    font-size: 11px;
    max-width: 140px;
    white-space: normal;
    text-align: center;
    bottom: -45px;
  }

}

.consultation-btn{
    animation: shake 2s infinite;
    animation-delay: 10s; /* slide complete hone ke baad */
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}