/* ==========================================
   LEGACY BALANCE BANNER
   Показывается юзеру с остатком кредитов от старых разовых покупок
   и без активной подписки. Вставляется после navbar через JS.
   ========================================== */

.legacy-banner {
  position: relative;
  z-index: 50;
  background: linear-gradient(135deg, rgba(96,165,250,.14) 0%, rgba(139,92,246,.12) 100%);
  border-bottom: 1px solid rgba(139,92,246,.28);
  padding: 10px 16px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
  font-family: inherit;
}

.legacy-banner--visible {
  opacity: 1;
  transform: translateY(0);
}

.legacy-banner--leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.legacy-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.legacy-banner__icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

.legacy-banner__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.legacy-banner__text strong {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 700;
}

.legacy-banner__text span {
  color: #94a3b8;
  font-size: 12px;
}

.legacy-banner__cta {
  flex-shrink: 0;
  padding: 8px 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border: 1px solid rgba(139,92,246,.5);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.legacy-banner__cta:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  box-shadow: 0 4px 14px rgba(139,92,246,.35);
  transform: translateY(-1px);
}

.legacy-banner__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legacy-banner__close:hover {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.4);
  color: #fca5a5;
}

@media (max-width: 600px) {
  .legacy-banner {
    padding: 9px 12px;
  }

  .legacy-banner__content {
    gap: 10px;
  }

  .legacy-banner__icon {
    font-size: 20px;
  }

  .legacy-banner__text strong {
    font-size: 13px;
  }

  .legacy-banner__text span {
    font-size: 11px;
  }

  .legacy-banner__cta {
    padding: 7px 12px;
    font-size: 12px;
  }

  .legacy-banner__close {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}
