#update-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

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

#update-popup {
  background: linear-gradient(160deg, #0d001a, #1a0030);
  border: 1px solid rgba(160, 80, 220, 0.4);
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(100, 0, 180, 0.35);
  animation: slideUp 0.35s ease;
  font-family: 'Figtree', sans-serif;
  color: #e2d4f0;
}

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

.popup-tag {
  display: inline-block;
  background: rgba(160, 80, 220, 0.25);
  border: 1px solid rgba(160, 80, 220, 0.5);
  color: #d8b4fe;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.popup-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #d8b4fe;
  margin-bottom: 10px;
}

.popup-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(226, 212, 240, 0.8);
  margin-bottom: 22px;
}

.popup-body ul {
  margin-top: 8px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.popup-body ul li {
  color: rgba(216, 180, 254, 0.85);
}

.popup-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.popup-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.popup-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
  z-index: 0;
}

.popup-btn:hover::before {
  left: 100%;
}

.popup-btn > * {
  position: relative;
  z-index: 1;
}

.popup-btn-primary {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.popup-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}

.popup-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
}

.popup-dismiss {
  width: 100%;
  padding: 11px;
  background: rgba(100, 30, 160, 0.7);
  border: 1px solid rgba(160, 80, 220, 0.5);
  border-radius: 8px;
  color: #e9d5ff;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.popup-dismiss:hover {
  background: rgba(130, 50, 200, 0.85);
}