#ios { height: calc(100% - 110px - env(safe-area-inset-bottom)); overflow-y: auto;}



.nav { position: fixed; right: 0; bottom: 0;
  z-index: 120;
  
  
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: calc(60px + env(safe-area-inset-bottom));
  padding: 0 8px env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -4px 18px rgba(22, 38, 58, 0.08);
  box-sizing: border-box;
}

.nav button {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav button.active {
  color: var(--primary);
  font-weight: 700;
}

.nav button.active::before {
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--primary);
  content: '';
}

.nav button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -3px;
}

html.ios-frame {
  .home {padding: 50px 0;}
  .home .event,
  .home .consult,
  .home .plan.bgw {display: none;}
  .home .plan.trade {background-color: #fff;}

  #wrap + #ch-plugin {display: none !important;}


  .planWrap {height: 100%; position: relative;}
  .plan-top a {display: none;}
  
  .title_type1 {font-size: 18px;}
  .title_type1 label {display: none;}
  .title-wrap .title_type1 + p {font-size: 14px;}

  .payAcot .title-wrap p::before{content: 'CUBE의 추천종목 매매결산을 확인해 보세요.';}
  .freePlan .title-wrap .title_type1 + p::before {content: 'CUBE의 관심종목을 확인해 보세요.';}

}
