.exit-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  border-radius: 0.75rem;          
  padding: 1.5rem;                
  max-width: 34.9375rem;        
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.2);
  animation: popupFade 0.3s ease;
}

.popup-box h2 {
  font-size: 2.25rem;            
  line-height: 1.25;
  color: #1F2937;
  font-weight: 900;
}

.popup-box p {
  font-size: 1.125rem;          
  line-height: 1.45;
  color: #1F2937;
  margin-bottom: 1.5rem;          
}

.telegram-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.telegram-icon img {
  width: 5.25rem;               
}

.popup-btn {
    background: linear-gradient(to left, #fbbf24 50%, #1f2937 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    display: block;
    border-radius: .5rem;
    padding: .75rem 1rem;
    cursor: pointer;
    transition: all .2s ease;
}
.popup-btn:hover {
    background-position: left bottom;
    color: #fbbf24;
}

.popup-close {
  position: absolute;
  top: 1.75rem;
  right: 1.5rem;               
  background: none;
  border: none;
  font-size: 2rem;        
  cursor: pointer;
  color: #4B5563;
}

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

@media (max-width: 768px) {
    .popup-box {
        padding: 3rem 1rem 1rem;            
    }

    .popup-close {
        top: 0.75rem;
        right: 2.5rem;
    }
    
    .popup-box h2 {
        font-size: 2rem;
        line-height: 1.3; 
    }

    .popup-box p {
        font-size: 0.8125rem;         
        line-height: 1.45;
    }

    .telegram-icon img {
        width: 3.125rem;              
    }
}