/* Thanh điều hướng đáy mobile theo Figma 2321:9259 */
.mbnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: block;
  height: calc(100px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  font-family: 'SVN-Gotham', Montserrat, sans-serif;
  -webkit-font-smoothing: antialiased;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.mbnav *,
.mbnav *::before,
.mbnav *::after {
  box-sizing: border-box;
}

/* Nền trắng cong: hai cánh giãn ngang, phần lõm 128px giữ nguyên ở giữa */
.mbnav__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(70px + env(safe-area-inset-bottom));
  background:
    linear-gradient(#fff, #fff) left top / calc(50% - 64px) 100% no-repeat,
    linear-gradient(#fff, #fff) right top / calc(50% - 64px) 100% no-repeat,
    url('../images/mobile-nav/notch.svg') center top / 128px 70px no-repeat,
    linear-gradient(#fff, #fff) left 70px / 100% 100% no-repeat;
  pointer-events: auto;
}

.mbnav__plan {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  background: url('../images/header-v2/btn-pattern.png') left top / 77.25px 73.5px, #951c1f;
  box-shadow: 0 5px 12.5px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  pointer-events: auto;
  z-index: 1;
}

/* Lớp đỏ phủ 75% để hoa văn chỉ hiện 25% như Figma */
.mbnav__plan::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(149, 28, 31, 0.75);
}

.mbnav__plan img {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.mbnav__list {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  margin: 0;
  padding: 12px 12px 6px;
  list-style: none;
}

.mbnav__list > li {
  display: flex;
  flex: 1 0 0;
  justify-content: center;
  min-width: 0;
}

.mbnav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  color: #808089;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: -0.36px;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
}

.mbnav__item:hover,
.mbnav__item:focus {
  color: #808089;
  text-decoration: none;
}

.mbnav__item svg {
  display: block;
  flex: 0 0 auto;
}

.mbnav__item--label {
  justify-content: flex-end;
  height: 46px;
  pointer-events: none;
}

.mbnav__item[aria-current="page"],
.mbnav__item--label.is-active {
  color: #951c1f;
}

/* Ẩn thanh khi bàn phím ảo đang mở */
body.mbnav-typing .mbnav {
  transform: translateY(100%);
}

.ftr2__bottom-inner {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
