/* Universal Ecosystem Auto-Updater Stylesheet (Cyberdeck Aesthetic) */
#ecosystem-update-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ecoFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "JetBrains Mono", monospace, sans-serif;
}

@keyframes ecoFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.eco-modal {
  width: 100%;
  max-width: 480px;
  background: radial-gradient(circle at top right, #111b38 0%, #080d1e 65%);
  border: 1px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.25), 0 20px 40px rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #f1f5f9;
}

.eco-header {
  padding: 14px 18px;
  background: rgba(0, 240, 255, 0.08);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eco-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #00f0ff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eco-tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: ecoPulse 1.5s infinite;
}

@keyframes ecoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.eco-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.eco-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.eco-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 72vh;
  overflow-y: auto;
}

.eco-app-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eco-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(168,85,247,0.3));
  border: 1px solid rgba(0,240,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 16px rgba(0,240,255,0.25);
  flex-shrink: 0;
}

.eco-title-box h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
}

.eco-version-pill {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
.eco-version-pill strong {
  color: #00ff88;
  font-weight: 700;
}

.eco-changelog-box {
  background: rgba(5, 8, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
}

.eco-section-label {
  font-size: 10px;
  font-weight: 800;
  color: #00f0ff;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.eco-changelog-text {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.eco-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

/* Progress Bar */
.eco-progress-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eco-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.eco-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f0ff, #00ff88);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  transition: width 0.2s ease;
}

.eco-progress-status {
  font-size: 11px;
  color: #00f0ff;
  font-weight: 600;
}

/* Error & Clarification Box */
.eco-error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-error-title {
  font-size: 12px;
  font-weight: 800;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eco-error-desc {
  font-size: 11px;
  line-height: 1.45;
  color: #e2e8f0;
}

.eco-error-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.eco-btn-action {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fee2e2;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.eco-btn-action:hover { background: #ef4444; color: #fff; }

.eco-footer {
  padding: 14px 18px;
  background: rgba(5, 8, 17, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.eco-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.eco-btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.eco-btn-primary {
  background-color: #00d4ff;
  background: linear-gradient(135deg, #00f0ff, #0088ff);
  border: none;
  color: #030712;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transition: transform 0.1s, box-shadow 0.2s;
}
.eco-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.55);
}
.eco-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
