#mob-nav,
#mob-sheet,
#mob-sheet-backdrop {
  display: none;
}

@media (max-width: 1024px) {
  /* push page content up so it's not hidden behind the bar */
  body {
    padding-bottom: 108px;
  }

  #mob-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
  }

  /* Apply Now bar */
  .mnav-apply-wrap {
    background: #f0f4f3;
    padding: 10px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mnav-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #009b8a 0%, var(--g) 60%, #005a52 100%);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: var(--fs-15);
    font-weight: var(--fw-bold);
    color: #ffffff !important;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow:
      0 4px 18px rgba(var(--g-rgb), 0.45),
      0 1px 4px rgba(0, 0, 0, 0.12);
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mnav-apply:visited,
  .mnav-apply:hover,
  .mnav-apply:focus,
  .mnav-apply:active {
    color: #ffffff !important;
    text-decoration: none;
  }

  .mnav-apply:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(var(--g-rgb), 0.35);
  }

  .mnav-apply svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .mnav-apply:active svg {
    transform: translateX(2px);
  }

  /* Tab bar */
  .mnav-tabs {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
  }

  .mnav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 10px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--fs-10);
    font-weight: var(--fw-medium);
    color: #888;
    cursor: pointer;
    transition: color 0.18s;
    -webkit-tap-highlight-color: transparent;
  }

  .mnav-tab svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .mnav-tab.active {
    color: var(--g);
  }

  .mnav-tab span {
    line-height: 1.2;
  }

  /* More sheet backdrop */
  #mob-sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 400;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  #mob-sheet-backdrop.open {
    display: block !important;
  }

  /* More sheet */
  #mob-sheet {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 12px 0 32px;
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  }

  #mob-sheet.open {
    transform: translateY(0);
  }

  .msheet-handle {
    width: 36px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 0 auto 16px;
  }

  .msheet-title {
    font-size: var(--fs-18);
    font-weight: var(--fw-bold);
    color: #111;
    padding: 0 20px 4px;
    font-family: var(--font-display);
  }

  .msheet-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .msheet-close svg {
    width: 14px;
    height: 14px;
  }

  .msheet-list {
    list-style: none;
    margin-top: 8px;
  }

  .msheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    font-family: var(--font-body);
    font-size: var(--fs-15);
    font-weight: var(--fw-medium);
    color: #1a1a1a;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .msheet-item:active {
    background: #f5f5f5;
  }

  .msheet-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f0f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .msheet-icon svg {
    width: 18px;
    height: 18px;
    color: var(--g);
  }
}
