body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont;
  background: #f5f6f8;
}

.investment {
	max-width: 750px;
  margin: 0 auto;
  background: #fff;
  
  position: relative;
  padding-bottom: 38px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  padding: 12px 0 12px 6px;
	justify-content: space-between;
}

.title {

}

.title span {
  margin-right: 4px;
  color: #0A3688;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 3px 12px;
  font-size: 18px;
}

.icons {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.icons a {
  margin-top: 5px;  
  text-decoration: none;
}

.icons img{
  max-width: 17px;
  margin-right: 10px;
  display: block;
}


/* 탭 */
.tabs {
  width: 100%;
  display: flex;
	justify-content: space-between;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.tabs span {
  padding: 10px;
  font-size: 13px;
  color: #333333;
	min-width: 10%;
	display: flex;
	justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.tabs span:active {
  background: #EAF1FF;
  /* background: rgba(0,0,0,0.2); */
  transform: scale(0.95);  
}

.tabs a {
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: #333;
}

.tabs a:active {
  background: #EAF1FF;
  transform: scale(0.95);
}

.tabs .active {
  color: #0A3688;
  font-weight: bold;
  border-bottom: 2px solid #0A3688;
}

/* 카드 */
.card {
  background: #EEEFF3;
  padding: 16px;
  margin-bottom: 10px;
}

.asset-title {
  display: flex;
  align-items: center;
  margin: 0;
}

.question {
  width: 20px;
  margin-left: 6px;
}

.asset-grid {
  display: flex;
  margin: 10px 0;
}

.left, .right {
  flex: 1;
}

.left .top {
  padding-right: 12px;
  border-right: 1px solid #ddd;
}

.right .top {
  padding-left: 12px;
}

.sub {
  margin-top: 10px;
}

.sub.lm10 {
  margin-left: 10px;
}

.sub.rm10 {
  margin-right: 10px;
}

.sub p {
  font-size: 13px;
  margin: 4px 0;
  display: flex;
  justify-content: space-between;
}

.label {
  font-size: 14.5px;
  margin: 4px 0 0 0;
}

.big {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 6px 0;
}

.down {
  color: #2f6fed;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-top: 1px solid #fff;
  max-height: 50px;
}

.arrow {
  transition: transform 0.3s;
}

/* 접힘 상태 */
.portfolio-card.closed .content {
  display: none;
}

/* 화살표 회전 */
.portfolio-card.closed .arrow {
  /* transform: rotate(180deg); */
}

/* 도넛 차트 */
.content {
  display: flex;
  align-items: center;
  /* max-height: 500px; */
  overflow: hidden;
  transition: max-height 0.3s ease;

  gap: 12px;
}

.portfolio-card.closed .content {
  max-height: 0;
}

.donut-wrap {
  width: 50%;
  /* max-width: 350px; */
  position: relative;
  flex: 0 0 50%;
}

.donut {
  /* width: 350px;
  height: 350px; */
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.donut::after {
  content: "";
  position: absolute;
  /* width: 130px;
  height: 130px; */
  width: 35%;
  height: 37%;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
  color: #000;
  z-index: 2;
}

.labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;

  inset: 0;
}

.per-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 400;
  pointer-events: none;
  z-index: 3;
}

/* 범례 */
.legend {
  /* max-width: 100px; */
  max-width: 30%;
  flex: 0 0 50%;
  width: 50%;
  margin: 0 auto;
  box-sizing: border-box;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  font-size: 13px;
}

.item .left {
  display: flex;
  align-items: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.green { background: #8bb541; }
.blue { background: #2f6fed; }
.purple { background: #7a5cff; }

.interest {
  background: #EEEEF3;
  margin: 10px;
  display: flex;
  justify-content: space-between;
  border: 1px solid #EEEEF3;
  border-radius: 6px;
}

.interest .info {
  margin: 12px;
  display: flex;
  flex-direction: column;
}

.interest .info-title {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.interest-question {
  width: 15px;
  margin-left: 6px;
}

.interest .info-data {
  font-size: 16px;
  font-weight: 600;
}

.interest .button {
  margin: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0062DF;
  color: #eee;
  padding: 6px 10px 8px 10px;
  border: 1px solid #0062DF;
  border-radius: 4px;
  line-height: 1;
}

.interest .button span {
  display: flex;
  align-items: center;
}

.interest .button img{
  width: 20px;
  margin-right: 6px;
  display: block;
  transform: translateY(2px);
}

/* 코인 리스트 */
.coin-list {
  background: #fff;
}

.coin-header {
  display: flex;
  flex-direction: row;
  border-bottom: 2px solid #D7D8DC;
  padding: 8px 0;
}

.coin-title {
  display: flex;
  align-items: center;
}

.coin-question {
  width: 18px;
  margin-left: 6px;
}

.checkbox {
  margin-left: 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
}

.checkbox input {
  display: none;
}

.checkmark {
  width: 19px;
  height: 19px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 6px;
  position: relative;
  transition: all 0.2s ease;
}

/* 체크 상태 */
.checkbox input:checked + .checkmark {
  background-color: #0A3688;
  border-color: #0A3688;
}

/* 체크 아이콘 */
.checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 카드 */
.asset-item {
  background: #fff;
  padding: 0 16px;
  border-bottom: 1px solid #eee;
}

/* 상단 */
.asset-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.asset-name {
  font-weight: bold;
  color: #0A3688;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.name-row {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.name-row img {
  width: 21px;
  margin: 4px;
}

.symbol {
  line-height: 0.9em;
}

.asset-profit {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 50%;
  font-size: 14px;
}

.up {
  color: #e74c3c;
}

.down {
  color: #2b6ef3;
}

.txt-right {
  text-align: right;
}

/* 본문 */
.asset-body {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.asset-body .left {
  width: 48%;
  text-align: right;
  margin-right: 8%;
}

.asset-body .right {
  width: 48%;
  text-align: right;
}

.value {
  font-size: 15px;
  font-weight: 500;
}

.label {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

/* 하단 메뉴 */
.menu-list {
  margin-top: 10px;
  background: #fff;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  max-width: 750px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: #0A3688;
  color: #fff;
  padding: 0;
  z-index: 1;
}

.bottom-menu1 {
  display: flex;
  align-items: center;
  padding: 8px 0 2px 0;
}

.bottom-menu2 {
  display: flex;
  align-items: center;
  padding: 8px 0 0 0;
}

.bottom-menu3 {
  display: flex;
  align-items: center;
  padding: 6px 0 2px 0;
}

.bottom-menu4 {
  display: flex;
  align-items: center;
  padding: 8px 0 0 0;
}

.bottom-menu5 {
  display: flex;
  align-items: center;
  padding: 9px 0 0 0;
}

.bottom-nav a {
  -webkit-tap-highlight-color: transparent;
}

.bottom-menu1 img {
  width: 32px;
  /* height: 35px; */
}

.bottom-menu2 img {
  width: 42px;
}

.bottom-menu3 img {
  width: 42px;
}

.bottom-menu4 img {
  width: 32px;
}

.bottom-menu5 img {
  width: 32px;
}