/* ===== UPGRADE PAGE ===== */

.upgrade-page {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0a0f1f 0%, #000 100%);
  z-index: 20000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  color: white;
  animation: fadeIn 0.3s ease;
}

.upgrade-page.active {
  display: flex;
}

.upgrade-header {
  display: flex;
  justify-content: flex-start;
}

.upgrade-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 24px;
}

.upgrade-title {
  text-align: center;
  font-size: 36px;
  margin-top: 20px;
  font-weight: 700;
}

.upgrade-title span {
  color: #1d7efd;
}

.upgrade-hero {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.upgrade-logo {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  box-shadow: 0 0 40px rgba(29,126,253,0.5);
}

.upgrade-card {
  background: #111827;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.upgrade-card h2 {
  margin-bottom: 10px;
}

.upgrade-card p {
  font-size: 14px;
  opacity: 0.8;
}

.upgrade-card small {
  display: block;
  margin-top: 10px;
  opacity: 0.6;
}

.trial-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.toggle {
  width: 40px;
  height: 22px;
  background: #333;
  border-radius: 20px;
  position: relative;
}

.toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle.active {
  background: #1d7efd;
}

.toggle.active::before {
  left: 20px;
}

.price-info {
  text-align: center;
  margin-bottom: 20px;
}

.badge {
  background: white;
  color: black;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.upgrade-btn {
  background: #1d7efd;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.upgrade-btn:hover {
  background: #1054c9;
}

@keyframes fadeIn {
  from {opacity:0}
  to {opacity:1}
}

/* ===== PARTICLES ===== */

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #1d7efd;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 10s linear infinite;
}

@keyframes float {
  from {
    transform: translateY(100vh) scale(0.5);
  }
  to {
    transform: translateY(-10vh) scale(1.2);
  }
}

/* ===== LOGO WRAPPER ===== */

.logo-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;   /* 👈 ISSO FAZ A FITA ENTRAR NOS CANTOS */
  border-radius: 30px; /* igual ao logo */
}

.upgrade-logo {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  box-shadow: 0 0 50px rgba(29,126,253,0.6);
  animation: pulseGlow 3s infinite alternate;
}

/* Glow animado */
@keyframes pulseGlow {
  from {
    box-shadow: 0 0 30px rgba(29,126,253,0.4);
  }
  to {
    box-shadow: 0 0 70px rgba(29,126,253,0.9);
  }
}

/* Fita diagonal premium */
.premium-ribbon {
  position: absolute;
  top: 12px;
  right: -35px;
  width: 140px;
  text-align: center;
  background: linear-gradient(135deg, #FFD700, #FF9800);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(255,215,0,0.8);
  letter-spacing: 1px;
  }
