/* Минималистичный popup Perplexity CTA с градиентом */
.tg-popup {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
  box-shadow: 0 4px 24px rgba(73,66,228,0.13);
  border-radius: 14px;
  padding: 18px 16px 14px 16px;
  min-width: 220px;
  max-width: 90vw;
  width: 340px;
  max-height: 220px;
  font-family: inherit;
  color: #fff;
  text-align: center;
  font-size: 1em;
}

.tg-popup-desktop { 
  display: block; 
}

.tg-popup-mobile { 
  display: none; 
}

.tg-popup-title {
  font-size: 1em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.tg-popup-subtitle {
  font-size: 1.25em;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.12em;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.tg-popup-badge {
  display: inline-block;
  background: #fffbe6;
  color: #b97a00;
  font-weight: 700;
  border-radius: 1.2em;
  padding: 0.22em 1.2em;
  font-size: 0.98em;
  margin: 0.3em auto 0.7em auto;
  letter-spacing: 0.01em;
  border: none;
}

.tg-popup-text {
  font-size: 0.98em;
  margin-bottom: 0.7em;
  color: #e6e8ff;
  line-height: 1.4;
}

.tg-popup-btn {
  display: inline-block;
  background: #fff;
  color: #4942E4;
  border-radius: 1.8em;
  padding: 0.7em 1.7em;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(80,90,180,0.06);
  cursor: pointer;
  border: none;
  border-radius: 0.8rem;
  margin-top: 0.1em;
}

.tg-popup-btn:hover {
  background: #e0e4ff;
  color: #322bb3;
  text-decoration: none;
}

.tg-popup-close {
  position: absolute;
  top: 0px;
  right: 5px;
  display: block;
  background: none;
  border: none;
  font-size: 1.3em;
  color: #fff;
  cursor: pointer;
  transition: color 0.18s;
  padding: 5px;
  line-height: 1;
}

.tg-popup-close:hover {
  color: #ffd700;
}

/* Мобильная двухколоночная верстка */
@media (max-width: 600px) {
  .tg-popup {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
    width: auto;
    min-width: 0;
    max-width: 96vw;
    padding: 10px 4px 10px 4px;
    border-radius: 10px;
    font-size: 0.97em;
    max-height: 180px;
    bottom: 10px;
  }
  
  .tg-popup-title {
    font-size: 12px;
    margin-bottom: 0;
  }
  
  .tg-popup-subtitle {
    font-size: 15px;
    margin-bottom: 0.18em;
  }
  
  .tg-popup-badge { 
    font-size: 0.93em; 
    margin: 0.5em auto 1.1em auto; 
  }
  
  .tg-popup-btn { 
    font-size: 0.97em; 
    padding: 0.6em 1.2em; 
    margin-top: 0.2em; 
  }
  
  .tg-popup-desktop { 
    display: none !important; 
  }
  
  .tg-popup-mobile {
    display: block !important;
    padding: 1px 26px 1px 10px;
  }
  
  .tg-popup-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
  }
  
  .tg-popup-mobile-text {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
  }
  
  .tg-popup-mobile-arrow {
    margin: 0 6px;
    display: flex;
    align-items: center;
  }
  
  .tg-popup-mobile-tg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    margin-left: 2px;
  }
  
  .tg-popup-mobile-gift {
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1em;
    line-height: 1;
    min-width: 1.5em;
  }
}