@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  header {
    min-height: auto;
  }

  header .logo,
  header hr,
  header nav.navbar {
    display: none;
  }

  body.mobile-drawer-open {
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  .mobile-topbar,
  .mobile-drawer,
  .mobile-drawer-overlay,
  .mobile-bottom-nav {
    display: none !important;
  }
}

.mobile-topbar {
  height: 56px;
  background: linear-gradient(180deg, #0b3a2e, #071f19);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.mobile-topbar__start {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-topbar__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-topbar__balance {
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  font-size: 14px;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-topbar__balance > span {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.mobile-topbar__balance > i {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.mobile-topbar__balance > i::before {
  display: block;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.mobile-topbar__balance:focus {
  outline: none;
}

.mobile-topbar__balance:hover {
  color: #fff;
  text-decoration: none;
}

.mobile-topbar__btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-topbar__btn:focus {
  outline: none;
}

.mobile-topbar__spacer {
  width: 40px;
  height: 40px;
}

.mobile-topbar__logo {
  height: 32px;
  display: block;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 1050;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(86vw, 380px);
  background: linear-gradient(180deg, #0b3a2e, #071f19);
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 1060;
  display: flex;
  flex-direction: column;
}

body.mobile-drawer-open .mobile-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-drawer-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer__header {
  background: var(--first-color);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer__header .mobile-drawer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer__close:focus {
  outline: none;
}

.mobile-drawer__content {
  overflow: auto;
  padding: 14px 18px 24px;
}

.mobile-drawer__section-title {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 16px;
  margin: 18px 0 10px;
}

.mobile-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-drawer__list a {
  display: block;
  padding: 10px 0;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
}

.mobile-drawer__list a:hover {
  color: var(--first-color);
  text-decoration: none;
}

.mobile-drawer__list a.is-active {
  color: var(--first-color) !important;
  position: relative;
  font-weight: 700;
}

.mobile-drawer__list a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  width: 46px;
  height: 3px;
  border-radius: 99px;
  background: var(--first-color);
}

.mobile-drawer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 14px 0;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, #0b3a2e, #071f19);
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.3);
  z-index: 1040;
}

.mobile-bottom-nav__inner {
  height: 72px;
  display: flex;
  gap: 6px;
}

.mobile-bottom-nav__item {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  flex: 1 1 0;
}

.mobile-bottom-nav__item i {
  font-size: 18px;
}

.mobile-bottom-nav__item.is-active {
  color: var(--first-color);
}

.mobile-bottom-nav__item.is-active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: var(--first-color);
}
