.update-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1B4332 0%, #52B788 100%);
  color: white;
  padding: 14px 16px;
  animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
  from {
    transform: translateY(-110%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-110%);
    opacity: 0;
  }
}

.update-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
}

.update-icon {
  font-size: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.update-text {
  flex: 1;
  min-width: 0;
}

.update-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.update-text p {
  font-size: 12px;
  margin: 0;
  opacity: 0.95;
  font-weight: 500;
}

.update-text small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin-top: 2px;
}

.update-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn-update-now,
.btn-update-later {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-update-now {
  background: white;
  color: #1B4332;
}

.btn-update-now:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.9);
}

.btn-update-later {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-update-later:active {
  background: rgba(255, 255, 255, 0.35);
}

body.has-update-banner .phva-topbar {
  margin-top: 72px;
}

body.has-update-banner #screen-area {
  scroll-padding-top: 72px;
}

.version-info {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  padding: 12px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 12px;
  text-align: center;
}

.version-info p {
  margin: 0;
  font-weight: 600;
  color: #1B4332;
}

.version-info small {
  display: block;
  color: #4b7c5c;
  margin-top: 4px;
  font-size: 10px;
}

.update-history {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  margin-top: 12px;
}

.update-history h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.update-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-history li {
  padding: 8px 10px;
  margin: 4px 0;
  background: white;
  border-left: 3px solid #52B788;
  border-radius: 4px;
  font-size: 11px;
  color: #334155;
}

.update-history li strong {
  color: #1B4332;
  font-weight: 600;
}

.update-history li small {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .update-banner {
    padding: 12px 12px;
  }
  .update-banner-content {
    gap: 10px;
  }
  .update-icon {
    font-size: 20px;
  }
  .update-text strong {
    font-size: 13px;
  }
  .update-text p {
    font-size: 11px;
  }
  .btn-update-now,
  .btn-update-later {
    padding: 5px 10px;
    font-size: 10px;
  }
}
