/* Ecosystem app switcher — Premium SaaS */

.ecosystem-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--s1, #FFFFFF);
}

.ecosystem-nav--topbar {
  padding: 0;
  min-height: auto;
  border: none;
}

.ecosystem-nav--sticky-mobile {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.eco-back {
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--border-md);
  border-radius: var(--r-pill);
  background: var(--s1);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.eco-back:hover {
  color: var(--text-1);
  border-color: var(--brand-primary);
}

.eco-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--s2, #F5F2EC);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}

.eco-pill {
  min-height: 32px;
  padding: 6px 14px;
  border: none;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.eco-pill:hover {
  color: var(--text-1);
}

.eco-pill.is-active {
  background: var(--s1);
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
}

.eco-pill.is-active[data-eco-app="vinar"] { color: var(--brand-primary); }
.eco-pill.is-active[data-eco-app="vela"] { color: #C45C26; }
.eco-pill.is-active[data-eco-app="wallet"] { color: #0D9488; }

html.vinar-embed .ecosystem-nav,
html.vinar-embed .journey-breadcrumb { display: none !important; }

.journey-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-3);
  background: var(--s1);
  border-bottom: 1px solid var(--border);
}

.journey-breadcrumb button {
  color: var(--text-2);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.journey-breadcrumb button:hover { color: var(--brand-primary); }
.journey-breadcrumb .sep { opacity: 0.4; }

/* Microapp full-page layout */
body[data-app="vela"],
body[data-app="wallet"] {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--bg);
}

body[data-app="vela"] .shell,
body[data-app="wallet"] .shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body[data-app="vela"] .tabs,
body[data-app="wallet"] .tabs {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: var(--s1);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

body[data-app="vela"] .tab-btn,
body[data-app="wallet"] .tab-btn {
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  background: var(--s1);
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

body[data-app="vela"] .tab-btn.active {
  background: #FFF4EB;
  border-color: #F0C9A0;
  color: #9A4E12;
}

body[data-app="wallet"] .tab-btn.active {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

body[data-app="vela"] .frame-wrap,
body[data-app="wallet"] .frame-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: none;
  border-radius: 0;
  background: var(--bg);
}

body[data-app="vela"] .frame,
body[data-app="wallet"] .frame {
  flex: 1;
  width: 100%;
  min-height: 60vh;
  border: 0;
  background: var(--bg);
}
