/* ==========================================================================
   Eden OS Unified AI-First Ecosystem Command Bar & Adam Central Hub
   Shared across stay-elite.com, /portal/*, and /birddog/* so no surface is
   ever hidden, orphaned, or forgotten.
   ========================================================================== */

.eden-eco-bar {
  position: sticky;
  top: 0;
  z-index: 9990;
  width: 100%;
  background: linear-gradient(90deg, #060b14 0%, #0b1528 50%, #060b14 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.38);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.42);
  font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f8fafc;
  box-sizing: border-box;
}

.eden-eco-bar *,
.eden-eco-modal * {
  box-sizing: border-box;
}

.eden-eco-bar__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.eden-eco-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.eden-eco-bar__pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  flex-shrink: 0;
}

.eden-eco-bar__nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: center;
}

.eden-eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.24);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.eden-eco-pill:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}

.eden-eco-pill.is-active {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.eden-eco-pill--adam-center {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(56, 189, 248, 0.28) 100%);
  border: 1px solid #34d399;
  color: #ffffff;
  font-weight: 700;
  padding: 5px 12px;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.28);
}

.eden-eco-pill--adam-center:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.42) 0%, rgba(56, 189, 248, 0.42) 100%);
  border-color: #6ee7b7;
}

.eden-eco-pill__step {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eden-eco-pill--adam-center .eden-eco-pill__step {
  color: #6ee7b7;
}

.eden-eco-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.eden-eco-context-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 11.5px;
  font-weight: 600;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eden-eco-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.eden-eco-hub-btn:hover {
  background: rgba(245, 158, 11, 0.32);
  color: #ffffff;
}

/* Modal Backdrop & Dialog */
.eden-eco-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f8fafc;
}

.eden-eco-modal.is-open {
  display: flex;
}

.eden-eco-modal__dialog {
  width: 100%;
  max-width: 1120px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #0b1324 0%, #090e1a 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}

.eden-eco-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.eden-eco-modal__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
}

.eden-eco-modal__title {
  margin: 4px 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 800;
  color: #ffffff;
}

.eden-eco-modal__sub {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
}

.eden-eco-modal__close {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.eden-eco-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.eden-eco-pillar-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.eden-eco-pillar-card.is-center {
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.36) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: #10b981;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.18);
}

.eden-eco-pillar-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.eden-eco-pillar-card__step {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eden-eco-pillar-card__badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.eden-eco-pillar-card__title {
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
}

.eden-eco-pillar-card__desc {
  margin: 0;
  font-size: 12.2px;
  color: #cbd5e1;
  line-height: 1.45;
}

.eden-eco-pillar-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eden-eco-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.eden-eco-btn--primary {
  background: #10b981;
  color: #042f2e;
}

.eden-eco-btn--ghost {
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
}

.eden-eco-orchestrator-box {
  background: rgba(6, 78, 59, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: 14px;
  padding: 16px;
}

.eden-eco-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 10px;
  margin: 12px 0;
}

.eden-eco-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.eden-eco-field input,
.eden-eco-field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #090e1a;
  color: #f8fafc;
  font-size: 12.5px;
}

.eden-eco-stages-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 8px;
  margin-top: 12px;
}

.eden-eco-stage-chip {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 10px;
  padding: 9px 10px;
  text-decoration: none;
  color: #f8fafc;
  display: block;
}

.eden-eco-stage-chip:hover {
  border-color: #10b981;
}

.eden-eco-stage-chip b {
  display: block;
  font-size: 11px;
  color: #34d399;
}

.eden-eco-stage-chip span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
  color: #ffffff;
  word-break: break-word;
}

@media (max-width: 767px) {
  .eden-eco-bar__inner {
    padding: 6px 10px;
    gap: 6px;
  }
  .eden-eco-bar__nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .eden-eco-context-chip {
    display: none;
  }
}
