#upsellOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: upsellFadeIn 0.2s ease;
}

@keyframes upsellFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.upsell-modal {
  background: var(--surface, #1e2030);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: upsellSlideUp 0.25s ease;
}

@keyframes upsellSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.upsell-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted, #8892b0);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.upsell-close:hover { color: var(--text, #e7ecff); }

.upsell-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.upsell-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text, #e7ecff);
}

.upsell-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent, #6366f1);
  line-height: 1;
  margin-bottom: 1.4rem;
}

.upsell-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted, #8892b0);
}

.upsell-divider {
  border: none;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  margin: 0 0 1.25rem;
}

.upsell-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.upsell-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text, #e7ecff);
  line-height: 1.4;
}

.upsell-benefits li::before {
  content: '✓';
  color: #34d399;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.upsell-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.upsell-cta {
  display: block;
  background: var(--accent, #6366f1);
  color: #fff;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s;
}

.upsell-cta:hover { opacity: 0.88; }

.upsell-later {
  background: none;
  border: none;
  color: var(--text-muted, #8892b0);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem;
  text-align: center;
  width: 100%;
  transition: color 0.15s;
}

.upsell-later:hover { color: var(--text, #e7ecff); }
