/* Phoenix TS → LEXX Live rebrand modal */

.rebrand-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  pointer-events: none;
}

.rebrand-overlay.is-visible {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.rebrand-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 570px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rebrand-overlay.is-visible .rebrand-modal {
  transform: translateY(0) scale(1);
}

.rebrand-modal__shimmer {
  height: 6px;
  background: linear-gradient(90deg, #e25027, #f7931e, #00acef, #f7931e, #e25027);
  background-size: 300% 100%;
  animation: rebrand-shimmer 3s linear infinite;
}

@keyframes rebrand-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.rebrand-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.rebrand-modal__close:hover {
  color: var(--lexx-text);
  background: #f0f0f0;
}

.rebrand-modal__content {
  padding: 40px 40px 36px;
  text-align: center;
}

@media (max-width: 480px) {
  .rebrand-modal__content {
    padding: 30px 20px 28px;
  }
}

.rebrand-modal__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.rebrand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .rebrand-logo {
    height: 34px;
  }
}

.rebrand-logo--new {
  animation: rebrand-logo-pulse 2.5s ease-in-out infinite;
}

@keyframes rebrand-logo-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.rebrand-arrow svg {
  display: block;
}

.rebrand-modal__title {
  max-width: 395px;
  font-family: 'Poppins', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--lexx-text) !important;
  margin: 0 auto 12px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.rebrand-modal__subtitle {
  font-family: 'Poppins', sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #555 !important;
  line-height: 1.45 !important;
  margin-bottom: 30px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.rebrand-modal__text {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #666 !important;
  line-height: 24px !important;
  margin: 0 0 28px !important;
  max-width: 440px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.rebrand-modal__text strong {
  color: var(--lexx-text);
  font-weight: 600;
}

.rebrand-modal__cta {
  display: inline-block !important;
  font-size: 16px !important;
  padding: 14px 36px !important;
  border-radius: 12px !important;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  text-align: center;
  background: linear-gradient(to right, #e25027, #f7931e, #e25027) !important;
  background-size: 200% 100% !important;
  color: #fff !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  transition: background-position 0.4s ease-in-out !important;
}

.rebrand-modal__cta:hover {
  background-position: right center !important;
}
